1
0
mirror of https://github.com/rd235/cado synced 2024-12-27 06:24:11 +01:00

Fix CADO_SPOOL_DIR path and change PostInstall flag

This commit is contained in:
Mattia Biondi 2020-05-03 15:34:22 +02:00
parent 8cadce02ae
commit 792020b65d
2 changed files with 38 additions and 35 deletions

View File

@ -10,6 +10,8 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_FORTIFY_SOURCE=2 -O2 -Wall -pedantic")
set(LIBS_REQUIRED cap execs mhash pam pam_misc)
option(CADO_RUN_POST_INSTALL "Run PostInstall.cmake" ON)
foreach(THISLIB IN LISTS LIBS_REQUIRED)
find_library(${THISLIB}_library ${THISLIB})
if(NOT ${THISLIB}_library)
@ -24,7 +26,8 @@ else (WITHEDITOR)
endif (WITHEDITOR)
# Spool dir for scado files
set(CADO_SPOOL_DIR "/usr/local/var/spool/cado")
set(CADO_SPOOL_DIR
"${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/spool/${CMAKE_PROJECT_NAME}")
configure_file(
"include/config.h.in"

View File

@ -34,7 +34,7 @@ install(
DESTINATION ${CMAKE_INSTALL_BINDIR}
)
if(NOT DEBUILD)
if(CADO_RUN_POST_INSTALL)
install(
CODE "execute_process(
COMMAND ${CMAKE_COMMAND}