diff options
author | gabime <gmelman1@gmail.com> | 2019-04-27 02:42:33 +0300 |
---|---|---|
committer | gabime <gmelman1@gmail.com> | 2019-04-27 02:42:33 +0300 |
commit | f414198feeb6057d117c15a967a2ca13958afbce (patch) | |
tree | 38bfd0ce935e5e3caeff2298286c53f83d6e7a6a /CMakeLists.txt | |
parent | 2de924a187d6cfcec0f87723e3790b07d4bfb01a (diff) |
Cmake fix
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8bb9460d..1dadcb43 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,7 +47,7 @@ if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) set(SPDLOG_MASTER_PROJECT ON)
endif()
-option(SPDLOG_HEADER_ONLY "Header only version. Turn OFF to build as static lib" ON)
+option(SPDLOG_HEADER_ONLY "Header only version. Turn OFF to build as static lib" OFF)
option(SPDLOG_BUILD_EXAMPLES "Build examples" ${SPDLOG_MASTER_PROJECT})
option(SPDLOG_BUILD_BENCH "Build benchmarks (Requires https://github.com/google/benchmark.git to be installed)" ON)
option(SPDLOG_BUILD_TESTS "Build tests" ${SPDLOG_MASTER_PROJECT})
@@ -107,7 +107,7 @@ endif() #---------------------------------------------------------------------------------------
install(DIRECTORY ${HEADER_BASE}/spdlog DESTINATION include)
-if(!SPDLOG_HEADER_ONLY)
+if(NOT SPDLOG_HEADER_ONLY)
install(TARGETS spdlog ARCHIVE DESTINATION lib)
endif()
|