mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
Link OCC lib TKVCAF only for occ>=7.3.0
This commit is contained in:
parent
66618fa08a
commit
db2656132c
@ -74,7 +74,6 @@ set(OCC_LIBRARY_NAMES
|
|||||||
TKSTL
|
TKSTL
|
||||||
TKTopAlgo
|
TKTopAlgo
|
||||||
TKV3d
|
TKV3d
|
||||||
TKVCAF
|
|
||||||
TKXCAF
|
TKXCAF
|
||||||
TKXDEIGES
|
TKXDEIGES
|
||||||
TKXDESTEP
|
TKXDESTEP
|
||||||
@ -85,6 +84,10 @@ if(OCC_LINK_FREETYPE)
|
|||||||
set(OCC_LIBRARY_NAMES ${OCC_LIBRARY_NAMES} freetype)
|
set(OCC_LIBRARY_NAMES ${OCC_LIBRARY_NAMES} freetype)
|
||||||
endif(OCC_LINK_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} )
|
foreach( libname ${OCC_LIBRARY_NAMES} )
|
||||||
find_library( ${libname} ${libname} ${OCC_LIBRARY_DIR} )
|
find_library( ${libname} ${libname} ${OCC_LIBRARY_DIR} )
|
||||||
set(OCC_LIBRARIES ${OCC_LIBRARIES} ${${libname}})
|
set(OCC_LIBRARIES ${OCC_LIBRARIES} ${${libname}})
|
||||||
|
Loading…
Reference in New Issue
Block a user