diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-07-14 14:16:46 -0400 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-07-14 14:16:46 -0400 |
commit | 3d1c12b802c3dd3a0284f5f10aec3b98ab6d3a78 (patch) | |
tree | 7f54a15847997cffa6979fb9267263a01029cd48 /Tests/VSExternalInclude | |
parent | b23b1800a586b0afb316f92d9bde82896c804ef5 (diff) | |
download | cmake-3d1c12b802c3dd3a0284f5f10aec3b98ab6d3a78.tar.gz |
ENH: remove INCLUDE_EXTERNAL_MSPROJECT name hack, and use target properties instead, fix VXExternalInclude test for VS10
Diffstat (limited to 'Tests/VSExternalInclude')
-rw-r--r-- | Tests/VSExternalInclude/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/VSExternalInclude/CMakeLists.txt b/Tests/VSExternalInclude/CMakeLists.txt index 4814cc859a..931e63620c 100644 --- a/Tests/VSExternalInclude/CMakeLists.txt +++ b/Tests/VSExternalInclude/CMakeLists.txt @@ -40,4 +40,13 @@ ADD_EXECUTABLE(VSExternalInclude ${SOURCES}) # 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() |