1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 17:39:53 +03:00

CMake: make db, log, pid directory customizable

This commit is contained in:
Koichiro IWAO 2019-11-30 01:14:01 +09:00
parent b1aae5080d
commit c8479e3011
No known key found for this signature in database
GPG Key ID: 9F72CDBC01BF10EB

View File

@ -71,6 +71,23 @@ if(UNIX)
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
add_definitions(-DUNIX_BSD -DUNIX_MACOS -DBRIDGE_PCAP)
endif()
# custom db, log, pid directory for Unix
set(SE_DBDIR "" CACHE STRING "Directory where config files are saved")
set(SE_LOGDIR "" CACHE STRING "Directory where log files are written")
set(SE_PIDDIR "" CACHE STRING "Directory where PID files are put")
if(SE_DBDIR)
add_definitions(-DSE_DBDIR="${SE_DBDIR}")
endif()
if(SE_LOGDIR)
add_definitions(-DSE_LOGDIR="${SE_LOGDIR}")
endif()
if(SE_PIDDIR)
add_definitions(-DSE_PIDDIR="${SE_PIDDIR}")
endif()
endif()
# Cedar communication module