diff --git a/cmake/cmake_modules/FindOpenCasCade.cmake b/cmake/cmake_modules/FindOpenCasCade.cmake index a265feaf..053cd680 100644 --- a/cmake/cmake_modules/FindOpenCasCade.cmake +++ b/cmake/cmake_modules/FindOpenCasCade.cmake @@ -74,7 +74,6 @@ set(OCC_LIBRARY_NAMES TKSTL TKTopAlgo TKV3d - TKVCAF TKXCAF TKXDEIGES TKXDESTEP @@ -85,6 +84,10 @@ if(OCC_LINK_FREETYPE) set(OCC_LIBRARY_NAMES ${OCC_LIBRARY_NAMES} freetype) endif(OCC_LINK_FREETYPE) +if(OCC_VERSION_STRING VERSION_GREATER_EQUAL "7.3.0") + set(OCC_LIBRARY_NAMES ${OCC_LIBRARY_NAMES} TKVCAF) +endif() + foreach( libname ${OCC_LIBRARY_NAMES} ) find_library( ${libname} ${libname} ${OCC_LIBRARY_DIR} ) set(OCC_LIBRARIES ${OCC_LIBRARIES} ${${libname}})