mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 01:51:38 +08:00
cmake: Only install fmt headers when SPDLOG_FMT_EXTERNAL is not defined.
This commit is contained in:
parent
e42867f0a8
commit
920dd078f3
@ -184,9 +184,14 @@ if (SPDLOG_INSTALL)
|
||||
#---------------------------------------------------------------------------------------
|
||||
# Include files
|
||||
#---------------------------------------------------------------------------------------
|
||||
install(DIRECTORY include/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
install(DIRECTORY include/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" PATTERN "fmt/bundled" EXCLUDE)
|
||||
install(TARGETS spdlog spdlog_header_only EXPORT spdlog DESTINATION "${CMAKE_INSTALL_LIBDIR}/spdlog")
|
||||
|
||||
if(NOT SPDLOG_FMT_EXTERNAL)
|
||||
install(DIRECTORY include/${PROJECT_NAME}/fmt/bundled/
|
||||
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}/fmt/bundled/")
|
||||
endif()
|
||||
|
||||
#---------------------------------------------------------------------------------------
|
||||
# Package and version files
|
||||
#---------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user