Commit eedb43d7 authored by gabime's avatar gabime

wip cmake

parent 338125b9
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment