You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
484 B
16 lines
484 B
7 months ago
|
if(NOT trout_FMTLIB_ROOT_DIR)
|
||
|
set(trout_FMTLIB_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/fmtlib)
|
||
|
endif()
|
||
|
|
||
|
if(EXISTS "${trout_FMTLIB_ROOT_DIR}/CMakeLists.txt")
|
||
|
set(trout_FMTLIB_INCLUDE_DIRS "${trout_FMTLIB_ROOT_DIR}/include")
|
||
|
set(trout_FMTLIB_LIBRARIES "fmt")
|
||
|
if (NOT TARGET ${trout_FMTLIB_LIBRARIES})
|
||
|
add_subdirectory(${trout_FMTLIB_ROOT_DIR} third_party/fmtlib)
|
||
|
endif()
|
||
|
|
||
|
else()
|
||
|
message(FATAL_ERROR "${trout_FMTLIB_ROOT_DIR}/CMakeLists.txt not found")
|
||
|
endif()
|
||
|
|