CMake: only find Netgen when using internal smesh

This commit is contained in:
Louis Gombert
2025-12-07 11:03:56 +01:00
committed by Max Wilfinger
parent 96f8b3a43b
commit 193a789354
2 changed files with 5 additions and 6 deletions

View File

@@ -94,8 +94,11 @@ if(NOT FREECAD_LIBPACK_USE OR FREECAD_LIBPACK_CHECKFILE_CLBUNDLER OR FREECAD_LIB
endif(BUILD_GUI)
SetupSalomeSMESH()
if (BUILD_FEM_NETGEN)
find_package(NETGEN REQUIRED)
endif(BUILD_FEM_NETGEN)
set(NETGEN_DEFINITIONS -DNO_PARALLEL_THREADS -DOCCGEOMETRY)
if (NOT FREECAD_USE_EXTERNAL_SMESH)
find_package(NETGEN REQUIRED)
endif()
endif()
# not needed at the moment
#find_package(OpenCV REQUIRED)
SetupSwig()