Skip to content

Commit

Permalink
Fix include guards.
Browse files Browse the repository at this point in the history
  • Loading branch information
josephbirkner committed Jul 17, 2024
1 parent b9cea63 commit 5e89717
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if (ZSWAG_BUILD_WHEELS)
endif()
endif()

if (NOT TARGET yaml-cpp)
if (NOT TARGET yaml-cpp::yaml-cpp)
FetchContent_Declare(yaml-cpp
GIT_REPOSITORY "https://github.com/jbeder/yaml-cpp.git"
GIT_TAG "yaml-cpp-0.7.0"
Expand All @@ -104,15 +104,15 @@ if (NOT TARGET speedyj)
FetchContent_MakeAvailable(speedyj)
endif()

if (NOT TARGET Catch2)
if (NOT TARGET Catch2::Catch2)
FetchContent_Declare(Catch2
GIT_REPOSITORY "https://github.com/catchorg/Catch2.git"
GIT_TAG "v3.4.0"
GIT_SHALLOW ON)
FetchContent_MakeAvailable(Catch2)
endif()

if (NOT TARGET httplib)
if (NOT TARGET httplib::httplib)
if (NOT TARGET ZLIB::ZLIB)
find_package(ZLIB CONFIG REQUIRED)
endif ()
Expand Down

0 comments on commit 5e89717

Please sign in to comment.