aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2018-07-25 12:46:17 -0400
committerDeterminant <[email protected]>2018-07-25 12:46:17 -0400
commita3f76ac9bb539ba55431cc74f5de09653185cdef (patch)
tree448c4dc57fc990bc05ac2f637a517a6e2bc2cbc6 /CMakeLists.txt
parentaf22bce2f8084e8dc1f130828a907a0f90b28435 (diff)
...
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d032ae0..ca4d39d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,7 +6,6 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/salticidae/cmake
add_subdirectory(salticidae)
include_directories(salticidae/include)
-find_package(Libevent REQUIRED)
find_package(OpenSSL REQUIRED)
include(ExternalProject)
@@ -56,12 +55,13 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set(CMAKE_BUILD_TYPE "Release")
endif()
-if(CMAKE_BUILD_TYPE STREQUAL "Debug")
+option(HOTSTUFF_ENABLE_DEBUG_LOG "enable debug log" OFF)
+option(HOTSTUFF_ENABLE_NORMAL_LOG "enable normal log" ON)
+
+if(HOTSTUFF_ENABLE_DEBUG_LOG)
add_definitions(-DHOTSTUFF_DEBUG_LOG)
- add_definitions(-DSALTICIDAE_DEBUG_LOG)
-elseif(CMAKE_BUILD_TYPE STREQUAL "Release")
+elseif(HOTSTUFF_ENABLE_NORMAL_LOG)
add_definitions(-DHOTSTUFF_NORMAL_LOG)
- add_definitions(-DSALTICIDAE_NORMAL_LOG)
endif()
# add executables