# Add necessary definitions:
#
IF(NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
- ADD_FLAGS(TBB_COMPILE_FLAGS "-DDO_ITT_NOTIFY")
+ ADD_FLAGS(obj_tbb_COMPILE_FLAGS "-DDO_ITT_NOTIFY")
ENDIF()
IF(CMAKE_BUILD_TYPE MATCHES "Debug")
- ADD_FLAGS(TBB_COMPILE_FLAGS "-DTBB_USE_DEBUG")
+ ADD_FLAGS(obj_tbb_COMPILE_FLAGS "-DTBB_USE_DEBUG")
ENDIF()
IF(DEAL_II_USE_MT_POSIX)
- ADD_FLAGS(TBB_COMPILE_FLAGS "-DUSE_PTHREAD")
+ ADD_FLAGS(obj_tbb_COMPILE_FLAGS "-DUSE_PTHREAD")
ENDIF()
IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
- ADD_FLAGS(TBB_COMPILE_FLAGS "-DUSE_WINTHREAD")
+ ADD_FLAGS(obj_tbb_COMPILE_FLAGS "-DUSE_WINTHREAD")
ENDIF()
#
# We have to disable a bunch of warnings:
#
-ENABLE_IF_AVAILABLE(TBB_COMPILE_FLAGS "-Wno-parentheses")
-ENABLE_IF_AVAILABLE(TBB_COMPILE_FLAGS "-Wno-long-long")
+ENABLE_IF_AVAILABLE(obj_tbb_COMPILE_FLAGS "-Wno-parentheses")
+ENABLE_IF_AVAILABLE(obj_tbb_COMPILE_FLAGS "-Wno-long-long")
SET_TARGET_PROPERTIES(obj_tbb PROPERTIES
- COMPILE_FLAGS ${TBB_COMPILE_FLAGS})
+ COMPILE_FLAGS ${obj_tbb_COMPILE_FLAGS})