[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.156 1.157

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Dec 15 14:15:29 EST 2009


Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv29746/Source/kwsys

Modified Files:
	CMakeLists.txt 
Log Message:
KWSys: Build tests after libraries

The TestSharedForward executable and TestDynload module do not actually
link to a KWSys library, but it is nice to build them after the
libraries just like all other test binaries.

This also works around a universal binary bug in Xcode 2.x.  It forgets
to create the output directory for the executable before linking it.  We
avoid the problem by putting the library in the directory first.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/CMakeLists.txt,v
retrieving revision 1.156
retrieving revision 1.157
diff -C 2 -d -r1.156 -r1.157
*** CMakeLists.txt	8 Dec 2009 16:27:22 -0000	1.156
--- CMakeLists.txt	15 Dec 2009 19:15:27 -0000	1.157
***************
*** 1021,1024 ****
--- 1021,1025 ----
        ADD_LIBRARY(${KWSYS_NAMESPACE}TestDynload MODULE testDynload.c)
        KWSYS_SET_PROPERTY(TARGET ${KWSYS_NAMESPACE}TestDynload PROPERTY LABELS ${KWSYS_LABELS_LIB})
+       ADD_DEPENDENCIES(${KWSYS_NAMESPACE}TestDynload ${KWSYS_NAMESPACE})
      ENDIF(KWSYS_USE_DynamicLoader)
      CREATE_TEST_SOURCELIST(
***************
*** 1100,1103 ****
--- 1101,1105 ----
                     ${PROJECT_BINARY_DIR}/testSharedForward.c)
      KWSYS_SET_PROPERTY(TARGET ${KWSYS_NAMESPACE}TestSharedForward PROPERTY LABELS ${KWSYS_LABELS_EXE})
+     ADD_DEPENDENCIES(${KWSYS_NAMESPACE}TestSharedForward ${KWSYS_NAMESPACE}_c)
      ADD_TEST(kwsys.testSharedForward ${EXEC_DIR}/${KWSYS_NAMESPACE}TestSharedForward 1)
      KWSYS_SET_PROPERTY(TEST kwsys.testSharedForward PROPERTY LABELS ${KWSYS_LABELS_TEST})



More information about the Cmake-commits mailing list