Skip to content
Snippets Groups Projects
Commit e15cb552 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: CMakeLists.txt

parent c71be51a
Branches
Tags v1.8.1
No related merge requests found
......@@ -8,10 +8,7 @@ set(EXTVERS .6-devel)
set(CMAKE_MODULE_PATH
${PROJECT_SOURCE_DIR}/cmake/Modules
${CMAKE_MODULE_PATH}
${CMAKE_INSTALL_PREFIX}/lib
${CMAKE_INSTALL_PREFIX}
/usr/local
/usr/local/lib
)
include(PoddCMakeEnv)
......@@ -45,18 +42,20 @@ endif()
#jelse()
get_target_property(FMT_INCLUDE_DIR fmt::fmt INTERFACE_INCLUDE_DIRECTORIES)
add_definitions(-DSPDLOG_FMT_EXTERNAL )
set(SPDLOG_FMT_EXTERNAL TRUE)
#find_package(fmt QUIET)
find_package(spdlog REQUIRED)
#if(NOT spdlog_FOUND)
# message("spdlog not found.")
# message("Using builtin spdlog.")
# set(SPDLOG_FMT_EXTERNAL TRUE)
# add_subdirectory(src/3rd_party/spdlog)
# set(SPDLOG_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/src/3rd_party/spdlog/include)
#else()
# get_target_property(SPDLOG_INCLUDE_DIR spdlog::spdlog INTERFACE_INCLUDE_DIRECTORIES)
#endif()
find_package(spdlog QUIET)
if(NOT spdlog_FOUND)
message("spdlog not found.")
message("Using builtin spdlog.")
set(SPDLOG_FMT_EXTERNAL TRUE)
add_subdirectory(src/3rd_party/spdlog)
set(SPDLOG_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/src/3rd_party/spdlog/include)
else()
get_target_property(SPDLOG_INCLUDE_DIR spdlog::spdlog INTERFACE_INCLUDE_DIRECTORIES)
endif()
#message( "SPDLOG_INCLUDE_DIR ${SPDLOG_INCLUDE_DIR}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment