[Cmake-commits] [cmake-commits] hoffman committed CMakeLists.txt 1.7 1.8
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Jul 14 14:16:49 EDT 2009
Update of /cvsroot/CMake/CMake/Tests/VSExternalInclude
In directory public:/mounts/ram/cvs-serv27659/Tests/VSExternalInclude
Modified Files:
CMakeLists.txt
Log Message:
ENH: remove INCLUDE_EXTERNAL_MSPROJECT name hack, and use target properties instead, fix VXExternalInclude test for VS10
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/VSExternalInclude/CMakeLists.txt,v
retrieving revision 1.7
retrieving revision 1.8
diff -C 2 -d -r1.7 -r1.8
*** CMakeLists.txt 13 Jul 2009 20:58:24 -0000 1.7
--- CMakeLists.txt 14 Jul 2009 18:16:46 -0000 1.8
***************
*** 41,43 ****
--- 41,52 ----
# target depends on lib2
ADD_DEPENDENCIES(VSExternalInclude lib2)
+ # VS 10 vcxproj files have depends in them
+ # Since lib1 and lib2 do not depend on each other
+ # then the vcxproj files do not depend on each other
+ # and the sln file can no longer be the only source
+ # of that depend. So, for VS 10 make the executable
+ # depend on lib1 and lib2
+ IF(MSVC10)
+ ADD_DEPENDENCIES(VSExternalInclude lib1)
+ ENDIF()
More information about the Cmake-commits
mailing list