From 473551d760bb52d3c8d12b2096c10210e9387389 Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 26 Jul 2018 14:53:33 -0400 Subject: add auto generated config.h --- CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'CMakeLists.txt') 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") -- cgit v1.2.3