Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgabime <gmelman1@gmail.com>2019-04-27 19:41:25 +0300
committergabime <gmelman1@gmail.com>2019-04-27 19:41:25 +0300
commiteedb43d756be3a27856e77b86423f56581b19f97 (patch)
treeb746fc9657afb807efb734e94676f456eb451ba9 /CMakeLists.txt
parent338125b93a99253cfe80dcb77503eeba0b733702 (diff)
wip cmake
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4e77fd2e..96c00762 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,9 +39,10 @@ include(cmake/sanitizers.cmake)
#---------------------------------------------------------------------------------------
# Check if spdlog is being used directly or via add_subdirectory
-set(SPDLOG_MASTER_PROJECT OFF)
if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
set(SPDLOG_MASTER_PROJECT ON)
+else()
+ set(SPDLOG_MASTER_PROJECT OFF)
endif()
option(SPDLOG_STATIC_LIB "Build as static lib" OFF)