mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-27 07:59:03 +08:00
Fix cmake install again
This commit is contained in:
parent
83d274eb55
commit
d513f44a18
@ -353,8 +353,14 @@ if(SPDLOG_INSTALL)
|
||||
# Include files
|
||||
# ---------------------------------------------------------------------------------------
|
||||
install(DIRECTORY include/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
|
||||
if(NOT SPDLOG_USE_STD_FORMAT)
|
||||
set(FMT_TARGET "fmt")
|
||||
else ()
|
||||
set(FMT_TARGET "")
|
||||
endif()
|
||||
install(
|
||||
TARGETS spdlog fmt
|
||||
TARGETS spdlog ${FMT_TARGET}
|
||||
EXPORT spdlog
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
|
Loading…
Reference in New Issue
Block a user