include tbb as system include, use project as prefix

This commit is contained in:
Stephen Birarda 2015-02-18 13:58:20 -08:00
parent 973a076f34
commit 71482f6ad7
2 changed files with 3 additions and 1 deletions

View file

@ -117,6 +117,8 @@ else ()
set(EXTERNALS_BINARY_DIR "${EXTERNALS_BINARY_ROOT_DIR}/${CMAKE_GENERATOR}")
endif ()
set_property(DIRECTORY PROPERTY EP_PREFIX "project")
file(GLOB HIFI_CUSTOM_MACROS "cmake/macros/*.cmake")
foreach(CUSTOM_MACRO ${HIFI_CUSTOM_MACROS})
include(${CUSTOM_MACRO})

View file

@ -28,7 +28,7 @@ include_directories(SYSTEM "${OPENSSL_INCLUDE_DIR}")
target_link_libraries(${TARGET_NAME} ${OPENSSL_LIBRARIES} ${TBB_LIBRARIES})
# append tbb includes to our list of includes to bubble
target_include_directories(${TARGET_NAME} PUBLIC ${TBB_INCLUDE_DIRS})
target_include_directories(${TARGET_NAME} SYSTEM PUBLIC ${TBB_INCLUDE_DIRS})
# call macro to include our dependency includes and bubble them up via a property on our target
include_dependency_includes()