check if in debian package before PostInstall

This commit is contained in:
Mattia Biondi 2020-01-09 19:45:38 +01:00
parent 28e4c7054d
commit d9082075ba
1 changed files with 10 additions and 8 deletions

View File

@ -34,11 +34,13 @@ install(
DESTINATION ${CMAKE_INSTALL_BINDIR}
)
install(
if(NOT DEBUILD)
install(
CODE "execute_process(
COMMAND ${CMAKE_COMMAND}
-DBINDIR=${CMAKE_INSTALL_FULL_BINDIR}
-DLIBDIR=${CMAKE_INSTALL_FULL_LIBDIR}
-P ${PROJECT_SOURCE_DIR}/PostInstall.cmake
)"
)
)
endif()