Skip to content

Commit a212c3a

Browse files
committed
Add more error checks
1 parent b53a5df commit a212c3a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cmake/primesieveConfig.cmake.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414
#
1515
# ====================================================================
1616

17+
@PACKAGE_INIT@
18+
19+
# Nothing to do if primesieve is included as a subdirectory in
20+
# another project that uses CMake as its build system.
21+
if(TARGET primesieve::primesieve)
22+
return()
23+
endif()
24+
1725
include(CMakeFindDependencyMacro)
1826
find_dependency(Threads QUIET)
1927

0 commit comments

Comments
 (0)