Add missing dependency for CaDiCaL (#6431)
authorGereon Kremer <gereon.kremer@cs.rwth-aachen.de>
Fri, 23 Apr 2021 21:50:02 +0000 (23:50 +0200)
committerGitHub <noreply@github.com>
Fri, 23 Apr 2021 21:50:02 +0000 (21:50 +0000)
This PR adds the dependency of the CaDiCaL cmake target on the external project CaDiCaL-EP if it is not found in the system.

cmake/FindCaDiCaL.cmake

index 7c70a066cfdddc0c24989aed34b6af1cacdb5ff5..9f8289cb99002beb5e5a57af9ebf9c5ddf121ea9 100644 (file)
@@ -106,4 +106,5 @@ if(CaDiCaL_FOUND_SYSTEM)
   message(STATUS "Found CaDiCaL ${CaDiCaL_VERSION}: ${CaDiCaL_LIBRARIES}")
 else()
   message(STATUS "Building CaDiCaL ${CaDiCaL_VERSION}: ${CaDiCaL_LIBRARIES}")
+  add_dependencies(CaDiCaL CaDiCaL-EP)
 endif()