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.
This commit is contained in:
parent
285c731f0e
commit
640389f3a4
@ -16,8 +16,16 @@ target_link_libraries(mylibapp mylib)
|
|||||||
|
|
||||||
# On Linux, enable using an absolute install path to verify that
|
# On Linux, enable using an absolute install path to verify that
|
||||||
# CMAKE_INSTALL_PREFIX and CPACK_SET_DESTDIR interact properly.
|
# 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(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()
|
endif()
|
||||||
|
|
||||||
if(mylib_install_to_absolute_path)
|
if(mylib_install_to_absolute_path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user