aboutsummaryrefslogtreecommitdiff
path: root/ports/spdlog/disable-master-project-check.patch
blob: f39ec120a77a0efedb7b4bbf36398b5fffb9e697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 12320fb..70f611b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)
 
 # build shared option
 if(NOT WIN32)