diff options
author | Jose Bollo <jose.bollo@iot.bzh> | 2019-10-07 17:41:26 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2019-10-18 16:06:22 +0200 |
commit | 5cb824d4aca7fea9ed58325933e1eb4f1afcb9b3 (patch) | |
tree | 94f182aa40f5f092b0c3653eb29107215e8bdc3a /CMakeLists.txt | |
parent | 5179f5d383f99121bf4085af4b9354638e4e168c (diff) |
More documentation and cache access control
Change-Id: Id040ad44f862c212057a854ebaf5798da5b064b9
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d150697..26942d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,9 +48,7 @@ set(DEFAULT_DB_DIR "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/lib/cynagora" CACHE PATH "directory path of the database") set(DEFAULT_SOCKET_DIR "${CMAKE_INSTALL_FULL_RUNSTATEDIR}/cynagora" CACHE PATH "directory path of the sockets") -set(DEFAULT_CONFIG_DIR "${CMAKE_INSTALL_FULL_SYSCONFDIR}/security" - CACHE PATH "directory of configuration") -set(DEFAULT_INIT_FILE "${DEFAULT_CONFIG_DIR}/cynagora.initial") +set(DEFAULT_INIT_FILE "${CMAKE_INSTALL_FULL_SYSCONFDIR}/security/cynagora.initial") ########################################################################### @@ -77,8 +75,13 @@ if(WITH_CYNARA_COMPAT) add_subdirectory(compat) endif() +get_filename_component( + DEFAULT_INIT_FILE_DIRECTORY + ${DEFAULT_INIT_FILE} + DIRECTORY +) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cynagora.initial DESTINATION - ${DEFAULT_CONFIG_DIR} + ${DEFAULT_INIT_FILE_DIRECTORY} ) |