From db2656132c072f0804823e2bed3c8b96d8627824 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Mon, 28 Oct 2019 17:03:59 +0100 Subject: [PATCH] Link OCC lib TKVCAF only for occ>=7.3.0 --- cmake/cmake_modules/FindOpenCasCade.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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}})