[Cmake-commits] [cmake-commits] david.cole committed CMakeLists.txt 1.4 1.5
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Oct 28 14:40:04 EDT 2009
Update of /cvsroot/CMake/CMake/Tests/CPackComponents
In directory public:/mounts/ram/cvs-serv14135/Tests/CPackComponents
Modified Files:
CMakeLists.txt
Log Message:
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.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CPackComponents/CMakeLists.txt,v
retrieving revision 1.4
retrieving revision 1.5
diff -C 2 -d -r1.4 -r1.5
*** CMakeLists.txt 20 Jan 2009 19:29:41 -0000 1.4
--- CMakeLists.txt 28 Oct 2009 18:40:01 -0000 1.5
***************
*** 17,22 ****
# On Linux, enable using an absolute install path to verify that
# CMAKE_INSTALL_PREFIX and CPACK_SET_DESTDIR interact properly.
if(UNIX AND NOT APPLE)
! set(mylib_install_to_absolute_path ON)
endif()
--- 17,30 ----
# 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)
! if(NOT CPACK_BINARY_NSIS)
! set(mylib_install_to_absolute_path ON)
! endif()
endif()
More information about the Cmake-commits
mailing list