Link OCC lib TKVCAF only for occ>=7.3.0

This commit is contained in:
Matthias Hochsteger 2019-10-28 17:03:59 +01:00
parent 66618fa08a
commit db2656132c

View File

@ -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}})