summaryrefslogtreecommitdiffstats
path: root/Tests/Simple
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-11-27 21:13:41 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-11-27 21:13:41 (GMT)
commitf2e8fd06c2c2db4ff69bfd7449425bd088c6b920 (patch)
tree7cde20d1fabc2599e9da7ae6efda7efb511131fe /Tests/Simple
parent31a576abe674ba12021f75b574a4787458990cbd (diff)
downloadCMake-f2e8fd06c2c2db4ff69bfd7449425bd088c6b920.zip
CMake-f2e8fd06c2c2db4ff69bfd7449425bd088c6b920.tar.gz
CMake-f2e8fd06c2c2db4ff69bfd7449425bd088c6b920.tar.bz2
ENH: make sure things do not depend on optimized libraries if they are debug, and the other way around as well
Diffstat (limited to 'Tests/Simple')
-rw-r--r--Tests/Simple/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/Simple/CMakeLists.txt b/Tests/Simple/CMakeLists.txt
index 13abefe..c098224 100644
--- a/Tests/Simple/CMakeLists.txt
+++ b/Tests/Simple/CMakeLists.txt
@@ -10,3 +10,8 @@ add_library (simpleLib STATIC
)
target_link_libraries (simple simpleLib)
+
+# make sure optimized libs are not used by debug builds
+if(CMAKE_BUILD_TYPE MATCHES Debug)
+ target_link_libraries(simple optimized c:/not/here.lib )
+endif(CMAKE_BUILD_TYPE MATCHES Debug)