Skip to content

Commit

Permalink
refactor(cmake): check for saucer existence
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Nov 5, 2024
1 parent 36ccbb0 commit 7c2348d
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,17 @@ target_include_directories(${PROJECT_NAME} PRIVATE "include/saucer/modules")

include("cmake/cpm.cmake")

CPMAddPackage(
NAME saucer
GIT_TAG very-experimental
GIT_REPOSITORY "https://github.com/saucer/saucer"
)
if (PROJECT_IS_TOP_LEVEL)
CPMAddPackage(
NAME saucer
GIT_TAG very-experimental
GIT_REPOSITORY "https://github.com/saucer/saucer"
)
endif()

if (NOT TARGET saucer::saucer)
message(FATAL_ERROR "Could not find saucer target!")
endif()

saucer_add_module(${PROJECT_NAME})

Expand Down

0 comments on commit 7c2348d

Please sign in to comment.