aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt10
m---------salticidae0
2 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
diff --git a/salticidae b/salticidae
-Subproject 10b23b5b90197566c187c89a64ebfefa3111578
+Subproject 1b006d5164c605ef44652b4442309983bfc0d24