Fix cmake install again

This commit is contained in:
gabime 2024-01-13 16:23:15 +02:00
parent 83d274eb55
commit d513f44a18

View File

@ -353,8 +353,14 @@ if(SPDLOG_INSTALL)
# Include files # Include files
# --------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------
install(DIRECTORY include/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") install(DIRECTORY include/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
if(NOT SPDLOG_USE_STD_FORMAT)
set(FMT_TARGET "fmt")
else ()
set(FMT_TARGET "")
endif()
install( install(
TARGETS spdlog fmt TARGETS spdlog ${FMT_TARGET}
EXPORT spdlog EXPORT spdlog
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}