From: Thierry Thomas Date: Fri, 8 Mar 2024 22:22:09 +0000 (+0100) Subject: Add support for OpenCascade 7.8.0 X-Git-Tag: v9.6.0-rc1~487^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84481a4f081bbb1251589e01d33040f56d18f5e7;p=dealii.git Add support for OpenCascade 7.8.0 --- diff --git a/cmake/modules/FindDEAL_II_OPENCASCADE.cmake b/cmake/modules/FindDEAL_II_OPENCASCADE.cmake index d9a378a559..a0aa3b023f 100644 --- a/cmake/modules/FindDEAL_II_OPENCASCADE.cmake +++ b/cmake/modules/FindDEAL_II_OPENCASCADE.cmake @@ -66,11 +66,19 @@ if(EXISTS ${OPENCASCADE_INCLUDE_DIR}/Standard_Version.hxx) endif() # These seem to be pretty much the only required ones. -set(_opencascade_libraries - TKBO TKBool TKBRep TKernel TKFeat TKFillet TKG2d TKG3d TKGeomAlgo - TKGeomBase TKHLR TKIGES TKMath TKMesh TKOffset TKPrim TKShHealing TKSTEP - TKSTEPAttr TKSTEPBase TKSTEP209 TKSTL TKTopAlgo TKXSBase - ) +if(OPENCASCADE_VERSION AND OPENCASCADE_VERSION VERSION_GREATER_EQUAL "7.8.0") + set(_opencascade_libraries + TKBO TKBool TKBRep TKernel TKFeat TKFillet TKG2d TKG3d TKGeomAlgo + TKGeomBase TKHLR TKDEIGES TKMath TKMesh TKOffset TKPrim TKShHealing TKDESTEP + TKDESTL TKTopAlgo TKXSBase + ) + else() + set(_opencascade_libraries + TKBO TKBool TKBRep TKernel TKFeat TKFillet TKG2d TKG3d TKGeomAlgo + TKGeomBase TKHLR TKIGES TKMath TKMesh TKOffset TKPrim TKShHealing TKSTEP + TKSTEPAttr TKSTEPBase TKSTEP209 TKSTL TKTopAlgo TKXSBase + ) +endif() set(_libraries "") foreach(_library ${_opencascade_libraries})