From a3f76ac9bb539ba55431cc74f5de09653185cdef Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 25 Jul 2018 12:46:17 -0400 Subject: ... --- CMakeLists.txt | 10 +++++----- salticidae | 2 +- 2 files changed, 6 insertions(+), 6 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 index 10b23b5..1b006d5 160000 --- a/salticidae +++ b/salticidae @@ -1 +1 @@ -Subproject commit 10b23b5b90197566c187c89a64ebfefa31115783 +Subproject commit 1b006d5164c605ef44652b4442309983bfc0d24a -- cgit v1.2.3-70-g09d2