[cmake-commits] hoffman committed CMakeLists.txt 1.8 1.9

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Nov 27 16:13:43 EST 2006


Update of /cvsroot/CMake/CMake/Tests/Simple
In directory public:/mounts/ram/cvs-serv28820/Tests/Simple

Modified Files:
	CMakeLists.txt 
Log Message:
ENH: make sure things do not depend on optimized libraries if they are debug, and the other way around as well


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Simple/CMakeLists.txt,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- CMakeLists.txt	6 Jul 2005 19:24:31 -0000	1.8
+++ CMakeLists.txt	27 Nov 2006 21:13:41 -0000	1.9
@@ -10,3 +10,8 @@
   )
 
 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)



More information about the Cmake-commits mailing list