Prohibit Timing build mode with TBB. See issue #173

release/4.3a0
cbeall3 2015-06-17 16:23:27 -04:00
parent 19bc1cd686
commit 0f02b7d473
1 changed files with 6 additions and 0 deletions

View File

@ -158,6 +158,12 @@ else()
set(GTSAM_USE_TBB 0) # This will go into config.h
endif()
###############################################################################
# Prohibit Timing build mode in combination with TBB
if(GTSAM_USE_TBB AND (CMAKE_BUILD_TYPE STREQUAL "Timing"))
message(FATAL_ERROR "Timing build mode cannot be used together with TBB. Use a sampling profiler such as Instruments or Intel VTune Amplifier instead.")
endif()
###############################################################################
# Find Google perftools