Skip to content

Commit

Permalink
Fix cmake install again
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Jan 13, 2024
1 parent 83d274e commit d513f44
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit d513f44

Please sign in to comment.