[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.5 1.6

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Sep 4 17:34:27 EDT 2008


Update of /cvsroot/CMake/CMake/Tests/ExportImport/Import
In directory public:/mounts/ram/cvs-serv7843/Tests/ExportImport/Import

Modified Files:
	CMakeLists.txt 
Log Message:
ENH: Allow a custom list of debug configurations

Create a DEBUG_CONFIGURATIONS global property as a way for projects to
specify which configuration names are considered to be 'debug'
configurations.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/ExportImport/Import/CMakeLists.txt,v
retrieving revision 1.5
retrieving revision 1.6
diff -C 2 -d -r1.5 -r1.6
*** CMakeLists.txt	11 Aug 2008 20:23:10 -0000	1.5
--- CMakeLists.txt	4 Sep 2008 21:34:25 -0000	1.6
***************
*** 33,37 ****
  # Try linking to a library imported from the install tree.
  target_link_libraries(imp_testExe1 exp_testLib2 exp_testLib3 exp_testLib4)
- set_property(TARGET imp_testExe1 PROPERTY COMPILE_DEFINITIONS_DEBUG EXE_DBG)
  
  # Try building a plugin to an executable imported from the install tree.
--- 33,36 ----
***************
*** 59,65 ****
  # Try linking to a library imported from the build tree.
  target_link_libraries(imp_testExe1b bld_testLib2 bld_testLib3 bld_testLib4)
- set_property(TARGET imp_testExe1b PROPERTY COMPILE_DEFINITIONS_DEBUG EXE_DBG)
  
  # Try building a plugin to an executable imported from the build tree.
  add_library(imp_mod1b MODULE imp_mod1.c)
  target_link_libraries(imp_mod1b bld_testExe2)
--- 58,70 ----
  # Try linking to a library imported from the build tree.
  target_link_libraries(imp_testExe1b bld_testLib2 bld_testLib3 bld_testLib4)
  
  # Try building a plugin to an executable imported from the build tree.
  add_library(imp_mod1b MODULE imp_mod1.c)
  target_link_libraries(imp_mod1b bld_testExe2)
+ 
+ # Export/CMakeLists.txt pretends the RelWithDebInfo (as well as Debug)
+ # configuration should link to debug libs.
+ foreach(c DEBUG RELWITHDEBINFO)
+   set_property(TARGET imp_testExe1 PROPERTY COMPILE_DEFINITIONS_${c} EXE_DBG)
+   set_property(TARGET imp_testExe1b PROPERTY COMPILE_DEFINITIONS_${c} EXE_DBG)
+ endforeach(c)



More information about the Cmake-commits mailing list