CMake: require Netgen when BUILD_FEM_NETGEN is ON, don't fail silently

This commit is contained in:
Louis Gombert
2025-12-06 18:52:06 +01:00
committed by Max Wilfinger
parent b27eaa5387
commit 96f8b3a43b
2 changed files with 7 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ if(NOT FREECAD_LIBPACK_USE OR FREECAD_LIBPACK_CHECKFILE_CLBUNDLER OR FREECAD_LIB
endif(BUILD_GUI)
SetupSalomeSMESH()
if (BUILD_FEM_NETGEN)
find_package(NETGEN)
find_package(NETGEN REQUIRED)
endif(BUILD_FEM_NETGEN)
# not needed at the moment
#find_package(OpenCV REQUIRED)