more restrictive occ linking

This commit is contained in:
Matthias Hochsteger 2021-09-02 17:29:38 +02:00
parent ed2b67f5bd
commit 467d0e5663

View File

@ -316,7 +316,7 @@ install(TARGETS netgen_mpi netgen_metis ${NG_INSTALL_DIR})
if (USE_OCC)
find_package(OpenCasCade NAMES OpenCASCADE opencascade REQUIRED)
add_definitions(-DOCCGEOMETRY)
set(OCC_LIBRARIES ${OpenCASCADE_LIBRARIES})
set(OCC_LIBRARIES ${OpenCASCADE_ModelingAlgorithms_LIBRARIES} ${OpenCASCADE_ModelingData_LIBRARIES} ${OpenCASCADE_DataExchange_LIBRARIES})
include_directories(${OpenCASCADE_INCLUDE_DIR})
if(NOT OpenCASCADE_BUILD_SHARED_LIBS)
find_library( FREETYPE NAMES freetype )