Fixes #305: no longer forces on BUILD_TESTING
This commit is contained in:
parent
14c0e3a3a3
commit
190e3498c3
1 changed files with 5 additions and 2 deletions
|
|
@ -3,7 +3,11 @@ cmake_minimum_required (VERSION 3.0)
|
||||||
project (Simple-Web-Server)
|
project (Simple-Web-Server)
|
||||||
|
|
||||||
option(USE_STANDALONE_ASIO "set ON to use standalone Asio instead of Boost.Asio" OFF)
|
option(USE_STANDALONE_ASIO "set ON to use standalone Asio instead of Boost.Asio" OFF)
|
||||||
option(BUILD_TESTING "set ON to build library tests" OFF)
|
if(CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
|
option(BUILD_TESTING "set ON to build library tests" ON)
|
||||||
|
else()
|
||||||
|
option(BUILD_TESTING "set ON to build library tests" OFF)
|
||||||
|
endif()
|
||||||
option(BUILD_FUZZING "set ON to build library fuzzers" OFF)
|
option(BUILD_FUZZING "set ON to build library fuzzers" OFF)
|
||||||
option(USE_OPENSSL "set OFF to build without OpenSSL" ON)
|
option(USE_OPENSSL "set OFF to build without OpenSSL" ON)
|
||||||
|
|
||||||
|
|
@ -75,7 +79,6 @@ if(CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
target_include_directories(https_examples PRIVATE ${Boost_INCLUDE_DIR})
|
target_include_directories(https_examples PRIVATE ${Boost_INCLUDE_DIR})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
set(BUILD_TESTING ON)
|
|
||||||
|
|
||||||
install(FILES asio_compatibility.hpp server_http.hpp client_http.hpp server_https.hpp client_https.hpp crypto.hpp utility.hpp status_code.hpp mutex.hpp DESTINATION include/simple-web-server)
|
install(FILES asio_compatibility.hpp server_http.hpp client_http.hpp server_https.hpp client_https.hpp crypto.hpp utility.hpp status_code.hpp mutex.hpp DESTINATION include/simple-web-server)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue