Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Commit 9203a2e

Browse files
committed
be strictly paranoid for Template Janitor github action!
1 parent f159cac commit 9203a2e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ if(PROJECT_IS_TOP_LEVEL OR TEST_INSTALLED_VERSION)
88
enable_testing()
99

1010
find_package(myproject CONFIG REQUIRED) # for intro, project_options, ...
11+
12+
if(NOT TARGET myproject::project_options)
13+
message(FATAL_ERROR "Requiered config package not found!")
14+
return() # be strictly paranoid for Template Janitor github action! CK
15+
endif()
1116
endif()
1217

1318
# ---- Dependencies ----

0 commit comments

Comments
 (0)