summaryrefslogtreecommitdiffstats
path: root/Tests/CPackComponents
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2009-10-28 18:40:01 (GMT)
committerDavid Cole <david.cole@kitware.com>2009-10-28 18:40:01 (GMT)
commit640389f3a494593252595f1c300535cee2741519 (patch)
tree79981ca853af9ee9061b246b5616de0f176191b5 /Tests/CPackComponents
parent285c731f0ee52f8700133f92c1c948163492ccbb (diff)
downloadCMake-640389f3a494593252595f1c300535cee2741519.zip
CMake-640389f3a494593252595f1c300535cee2741519.tar.gz
CMake-640389f3a494593252595f1c300535cee2741519.tar.bz2
Avoid failure of CPackComponents test on dash16 and dash17 since makensis was installed on those machines to increase coverage. Do not add install rules with absolute paths when makensis is going to be used to build an installer.
Diffstat (limited to 'Tests/CPackComponents')
-rw-r--r--Tests/CPackComponents/CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/Tests/CPackComponents/CMakeLists.txt b/Tests/CPackComponents/CMakeLists.txt
index 862d139..3ef8083 100644
--- a/Tests/CPackComponents/CMakeLists.txt
+++ b/Tests/CPackComponents/CMakeLists.txt
@@ -16,8 +16,16 @@ target_link_libraries(mylibapp mylib)
# On Linux, enable using an absolute install path to verify that
# CMAKE_INSTALL_PREFIX and CPACK_SET_DESTDIR interact properly.
+#
+# But only use absolute paths if not targeting an NSIS installer
+# as indicated by CPACK_BINARY_NSIS. (If we allow this, the test
+# fails on Linux machines with makensis installed when we are not
+# cross-compiling...)
+#
if(UNIX AND NOT APPLE)
- set(mylib_install_to_absolute_path ON)
+ if(NOT CPACK_BINARY_NSIS)
+ set(mylib_install_to_absolute_path ON)
+ endif()
endif()
if(mylib_install_to_absolute_path)