Skip to content
Snippets Groups Projects
Commit 66f4b902 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

If USE_GEOCAD is ON, then fail when not found

parent f2a787fb
Branches
Tags
No related merge requests found
...@@ -45,10 +45,8 @@ include_directories(${podio_INCLUDE_DIR}) ...@@ -45,10 +45,8 @@ include_directories(${podio_INCLUDE_DIR})
find_package( DD4hep REQUIRED COMPONENTS DDCore DDG4 ) find_package( DD4hep REQUIRED COMPONENTS DDCore DDG4 )
# Opencascade # Opencascade
find_package(OpenCASCADE) if(USE_GEOCAD)
if(NOT OpenCASCADE_FOUND) find_package(OpenCASCADE)
message(WARNING "OpenCASCADE not found; disabling geocad")
set(USE_GEOCAD OFF)
endif() endif()
# libfmt # libfmt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment