diff options
Diffstat (limited to 'linux/cmake')
-rw-r--r-- | linux/cmake/DpkgDeb.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/cmake/DpkgDeb.cmake b/linux/cmake/DpkgDeb.cmake index 300ff0bf1..8a629521a 100644 --- a/linux/cmake/DpkgDeb.cmake +++ b/linux/cmake/DpkgDeb.cmake @@ -208,13 +208,13 @@ MACRO(ADD_DEBIAN_PACKAGE DEBNAME) # Calling "make install DESTDIR=${DEBIAN_DIR}" ADD_CUSTOM_TARGET(deb_destdir_install - COMMAND ${CMAKE_MAKE_PROGRAM} install CMAKE_INSTALL_PREFIX=/usr DESTDIR=${DEBIAN_DIR} + COMMAND ${CMAKE_MAKE_PROGRAM} install CMAKE_INSTALL_PREFIX=/ DESTDIR=${DEBIAN_DIR} DEPENDS ${CMAKE_BINARY_DIR}/cmake_install.cmake COMMENT "Installing with DESTDIR = ${DEBIAN_DIR}" ) ADD_DEPENDENCIES(deb_destdir_install deb_destdir_preinstall) ADD_CUSTOM_TARGET(deb_destdir_preinstall - COMMAND ${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=/usr -DDESTDIR=${DEBIAN_DIR} . + COMMAND ${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=/ -DDESTDIR=${DEBIAN_DIR} . DEPENDS ${CMAKE_BINARY_DIR}/cmake_install.cmake COMMENT "Configuring with DESTDIR = ${DEBIAN_DIR}" ) |