more flags in CMake

This commit is contained in:
EntireTwix 2021-07-03 11:57:38 -07:00
parent 0b59e273f0
commit 770027473e
2 changed files with 10 additions and 2 deletions

View file

@ -70,6 +70,14 @@ else()
set(MULTI_THREADED_VAL true) set(MULTI_THREADED_VAL true)
endif() endif()
if(RETURN_ON_DEL_NAME)
set(RETURN_ON_DEL_VAL true)
set(RETURN_ON_DEL_NAME_VAL ${RETURN_ON_DEL_NAME})
else()
set(RETURN_ON_DEL_VAL false)
set(RETURN_ON_DEL_NAME_VAL "\"\"")
endif()
configure_file(ccash_config.hpp.in ${CMAKE_CURRENT_SOURCE_DIR}/include/ccash_config.hpp) configure_file(ccash_config.hpp.in ${CMAKE_CURRENT_SOURCE_DIR}/include/ccash_config.hpp)
target_include_directories(${PROJECT_NAME} PUBLIC include) target_include_directories(${PROJECT_NAME} PUBLIC include)

View file

@ -12,8 +12,8 @@ constexpr const char *users_location = @USER_SAVE@;
constexpr const char *config_location = @DROGON_CONFIG@; constexpr const char *config_location = @DROGON_CONFIG@;
// Returns money to an account on deletion (useful if you dont want any money to leave the economy) // Returns money to an account on deletion (useful if you dont want any money to leave the economy)
#define RETURN_ON_DEL false #define RETURN_ON_DEL @RETURN_ON_DEL_VAL@
constexpr const char *return_account = ""; constexpr const char *return_account = @RETURN_ON_DEL_NAME_VAL@;
/* /*
if true, when frequency is hit AND changes have happened then save if true, when frequency is hit AND changes have happened then save