This commit is contained in:
@@ -1,16 +1,12 @@
|
||||
if(PROJECT_ENABLE_SPDLOG)
|
||||
if(PROJECT_BUILD)
|
||||
find_package(spdlog ${SPDLOG_VERSION} REQUIRED)
|
||||
|
||||
add_definitions(-DPROJECT_ENABLE_SPDLOG)
|
||||
|
||||
include_directories(BEFORE SYSTEM
|
||||
${SPDLOG_INCLUDE_DIRS}
|
||||
)
|
||||
find_package(spdlog ${SPDLOG_VERSION} REQUIRED)
|
||||
|
||||
link_libraries(
|
||||
spdlog::spdlog
|
||||
)
|
||||
include_directories(BEFORE SYSTEM ${SPDLOG_INCLUDE_DIRS})
|
||||
|
||||
link_libraries(spdlog::spdlog)
|
||||
elseif(NOT PROJECT_IS_MINGW OR CMAKE_HOST_WIN32)
|
||||
ExternalProject_Add(spdlog_project
|
||||
PREFIX external
|
||||
|
Reference in New Issue
Block a user