2019-01-14 20:31:58 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2019-11-26 06:35:53 +08:00
|
|
|
index 12320fb..70f611b 100644
|
2019-01-14 20:31:58 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2019-11-26 06:35:53 +08:00
|
|
|
@@ -33,13 +33,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
# Set SPDLOG_MASTER_PROJECT to ON if we are building spdlog
|
|
|
|
#---------------------------------------------------------------------------------------
|
|
|
|
# Check if spdlog is being used directly or via add_subdirectory, but allow overriding
|
|
|
|
-if (NOT DEFINED SPDLOG_MASTER_PROJECT)
|
|
|
|
- if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
|
|
|
|
- set(SPDLOG_MASTER_PROJECT ON)
|
|
|
|
- else()
|
|
|
|
- set(SPDLOG_MASTER_PROJECT OFF)
|
|
|
|
- endif()
|
|
|
|
-endif ()
|
|
|
|
+set(SPDLOG_MASTER_PROJECT OFF)
|
2019-01-14 20:31:58 +08:00
|
|
|
|
2019-11-26 06:35:53 +08:00
|
|
|
# build shared option
|
|
|
|
if(NOT WIN32)
|