mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 10:31:34 +08:00
wip cmake
This commit is contained in:
parent
338125b93a
commit
eedb43d756
@ -39,9 +39,10 @@ include(cmake/sanitizers.cmake)
|
|||||||
#---------------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Check if spdlog is being used directly or via add_subdirectory
|
# 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)
|
if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
|
||||||
set(SPDLOG_MASTER_PROJECT ON)
|
set(SPDLOG_MASTER_PROJECT ON)
|
||||||
|
else()
|
||||||
|
set(SPDLOG_MASTER_PROJECT OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(SPDLOG_STATIC_LIB "Build as static lib" OFF)
|
option(SPDLOG_STATIC_LIB "Build as static lib" OFF)
|
||||||
|
Loading…
Reference in New Issue
Block a user