Skip to content

Commit

Permalink
fix: spdlog can be instructed to create its install target by itself!
Browse files Browse the repository at this point in the history
Signed-off-by: Franz R. Sattler <[email protected]>
  • Loading branch information
Franz R. Sattler committed Jan 8, 2025
1 parent 234a9d5 commit 748a4eb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions DiFfRG/cmake/setup_build_system.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ if(USE_CUDA)

endif()

if(NOT spdlog_ADDED)
cpmaddpackage(
NAME
spdlog
Expand All @@ -266,12 +265,8 @@ if(NOT spdlog_ADDED)
VERSION
1.14.1
OPTIONS
"CMAKE_BUILD_TYPE Release")
if(spdlog_ADDED)
install(TARGETS spdlog
EXPORT DiFfRGTargets)
endif()
endif()
"CMAKE_BUILD_TYPE Release"
"SPDLOG_INSTALL ON")

# ##############################################################################
# Helper functions
Expand Down

0 comments on commit 748a4eb

Please sign in to comment.