mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-17 03:17:56 +08:00
18 lines
624 B
Diff
18 lines
624 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index e1d9656..f8cb60c 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -46,9 +46,9 @@ add_library(spdlog::spdlog ALIAS spdlog)
|
|
|
|
# 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)
|
|
-endif()
|
|
+#if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
|
|
+# set(SPDLOG_MASTER_PROJECT ON)
|
|
+#endif()
|
|
|
|
option(SPDLOG_BUILD_EXAMPLES "Build examples" ${SPDLOG_MASTER_PROJECT})
|
|
option(SPDLOG_BUILD_BENCH "Build benchmarks" ${SPDLOG_MASTER_PROJECT})
|