From 0f02b7d47385fd04be4fc8ec96b30fbf8fe14735 Mon Sep 17 00:00:00 2001 From: cbeall3 Date: Wed, 17 Jun 2015 16:23:27 -0400 Subject: [PATCH] Prohibit Timing build mode with TBB. See issue #173 --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e9aa0009..a77173ba0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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