diff options
author | Robert Goulet <robert.goulet@autodesk.com> | 2015-09-23 21:15:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-09-24 13:13:03 (GMT) |
commit | bd189cc24e2292ab80dde7c0d0ac1cd9fafb2d35 (patch) | |
tree | 27ffc539451f22c4aff837ba8d5b26e97d52ad98 /Tests/SimpleInstall | |
parent | 69ab5f55026c7e884a70f04aa7ddef776f74305b (diff) | |
download | CMake-bd189cc24e2292ab80dde7c0d0ac1cd9fafb2d35.zip CMake-bd189cc24e2292ab80dde7c0d0ac1cd9fafb2d35.tar.gz CMake-bd189cc24e2292ab80dde7c0d0ac1cd9fafb2d35.tar.bz2 |
install: Allow generator expressions in DIRECTORY DESTINATION
Diffstat (limited to 'Tests/SimpleInstall')
-rw-r--r-- | Tests/SimpleInstall/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/SimpleInstall/CMakeLists.txt b/Tests/SimpleInstall/CMakeLists.txt index 3227e3f..e365076 100644 --- a/Tests/SimpleInstall/CMakeLists.txt +++ b/Tests/SimpleInstall/CMakeLists.txt @@ -252,7 +252,7 @@ else() file(REMOVE_RECURSE "${CMAKE_INSTALL_PREFIX}/MyTest/share/CVS") file(REMOVE_RECURSE "${CMAKE_INSTALL_PREFIX}/MyTest/share/TestSubDir/CVS") install( - DIRECTORY TestSubDir scripts/ DESTINATION MyTest/share + DIRECTORY TestSubDir scripts/ DESTINATION $<1:MyTest/share>$<0:/wrong> FILE_PERMISSIONS OWNER_READ OWNER_WRITE DIRECTORY_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE @@ -263,14 +263,14 @@ else() # Alternate directory installation for coverage. install( - DIRECTORY scripts/ DESTINATION MyTest/share/alt + DIRECTORY scripts/ DESTINATION $<1:MyTest/share/alt>$<0:/wrong> COMPONENT Development USE_SOURCE_PERMISSIONS PATTERN "CVS" EXCLUDE REGEX "\\.txt$" EXCLUDE ) install( - DIRECTORY TestSubDir DESTINATION MyTest/share/alt + DIRECTORY TestSubDir DESTINATION $<1:MyTest/share/alt>$<0:/wrong> FILE_PERMISSIONS OWNER_READ OWNER_WRITE DIRECTORY_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE |