From a2c16a3b5eea3510b1bb9abd0bee98c23b9b37d5 Mon Sep 17 00:00:00 2001 From: jwilson Date: Mon, 20 Jun 2016 17:44:55 -0700 Subject: [PATCH] Another attempt to fix the build problem in the shmem code. --- src/platforms/posix/px4_layer/CMakeLists.txt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/platforms/posix/px4_layer/CMakeLists.txt b/src/platforms/posix/px4_layer/CMakeLists.txt index e18636a879..344621c694 100644 --- a/src/platforms/posix/px4_layer/CMakeLists.txt +++ b/src/platforms/posix/px4_layer/CMakeLists.txt @@ -31,13 +31,12 @@ # ############################################################################ -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/cmake_hexagon") -include(hexagon_sdk) - -include_directories(${CMAKE_BINARY_DIR}/src/firmware/posix) -include_directories(${HEXAGON_SDK_INCLUDES}) - if("${CONFIG_SHMEM}" STREQUAL "1") + set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/cmake_hexagon") + include(hexagon_sdk) + + include_directories(${CMAKE_BINARY_DIR}/src/firmware/posix) + include_directories(${HEXAGON_SDK_INCLUDES}) list(APPEND SHMEM_SRCS shmem_posix.c )