diff options
Diffstat (limited to 'cmake/FindCVC4.cmake')
-rw-r--r-- | cmake/FindCVC4.cmake | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/cmake/FindCVC4.cmake b/cmake/FindCVC4.cmake index 0fb13196..90b7ebd5 100644 --- a/cmake/FindCVC4.cmake +++ b/cmake/FindCVC4.cmake @@ -1,4 +1,8 @@ -find_path(CVC4_INCLUDE_DIR cvc4/cvc4.h) -find_library(CVC4_LIBRARY NAMES cvc4 ) -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(CVC4 DEFAULT_MSG CVC4_LIBRARY CVC4_INCLUDE_DIR) +if (USE_CVC4) + find_path(CVC4_INCLUDE_DIR cvc4/cvc4.h) + find_library(CVC4_LIBRARY NAMES cvc4 ) + include(FindPackageHandleStandardArgs) + find_package_handle_standard_args(CVC4 DEFAULT_MSG CVC4_LIBRARY CVC4_INCLUDE_DIR) +else() + set(CVC4_FOUND FALSE) +endif() |