mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-29 08:44:06 +08:00
Fix cmake install again
This commit is contained in:
parent
83d274eb55
commit
d513f44a18
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user