aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 2 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c004fd8..587584f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -53,11 +53,8 @@ endif()
option(SALTICIDAE_ENABLE_DEBUG_LOG "enable debug log" OFF)
option(SALTICIDAE_ENABLE_NORMAL_LOG "enable regular log" ON)
-if (SALTICIDAE_ENABLE_DEBUG_LOG)
- add_definitions(-DSALTICIDAE_DEBUG_LOG)
-elseif(SALTICIDAE_ENABLE_NORMAL_LOG)
- add_definitions(-DSALTICIDAE_NORMAL_LOG)
-endif()
+
+configure_file(src/config.h.in include/salticidae/config.h @ONLY)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -W -Wall -Wextra -pedantic -Wsuggest-override")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -W -Wall -Wextra -pedantic -Wsuggest-override")