Skip to content

Commit

Permalink
link against TKAdvTools only if OCCT < 6.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
5263 committed Aug 12, 2014
1 parent fcb2714 commit 1f162de
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Expand Up @@ -362,6 +362,7 @@ if(FREECAD_LIBPACK_USE)

else(FREECAD_LIBPACK_USE)

include(cMake/FreeCadMacros.cmake)

# ================================================================================
# == for other OSes search the packages ==========================================
Expand Down Expand Up @@ -455,8 +456,14 @@ else(FREECAD_LIBPACK_USE)
TKXDESTEP
TKXDEIGES
TKMeshVS
TKAdvTools
)
CHECK_MINIMUM_OCC_VERSION_HEX(0x060703)
if (NOT OCC_MIN_VERSION)
set(OCC_OCAF_LIBRARIES
${OCC_OCAF_LIBRARIES}
TKAdvTools
)
endif()
set(OCC_INCLUDE_DIR ${OCE_INCLUDE_DIRS})
set(OCC_FOUND ${OCE_FOUND})
else() #look for OpenCASCADE
Expand Down Expand Up @@ -637,7 +644,6 @@ if(WIN32)
endif(WIN32)


include(cMake/FreeCadMacros.cmake)


# ================================================================================
Expand Down
9 changes: 8 additions & 1 deletion cMake/FindOpenCasCade.cmake
Expand Up @@ -89,7 +89,14 @@ IF(OCC_LIBRARY)
TKXDESTEP
TKXDEIGES
TKMeshVS
TKAdvTools
)
CHECK_MINIMUM_OCC_VERSION_HEX(0x060703)
if (NOT OCC_MIN_VERSION)
set(OCC_OCAF_LIBRARIES
${OCC_OCAF_LIBRARIES}
TKAdvTools
)
endif()

ENDIF(OCC_LIBRARY)

2 changes: 1 addition & 1 deletion src/3rdParty/salomesmesh/Makefile.am
Expand Up @@ -21,7 +21,7 @@ endif
#AM_LDFLAGS = -version-info 1:0:0 -Wl,--no-undefined -L$(OCC_LIB)
AM_LDFLAGS = -version-info 1:0:0 -L$(OCC_LIB) \
-lTKernel -lTKService -lTKMath -lTKBRep -lTKTopAlgo -lTKGeomAlgo \
-lTKGeomBase -lTKG3d -lTKG2d -lTKMeshVS -lTKShHealing -lTKPrim -lTKAdvTools
-lTKGeomBase -lTKG3d -lTKG2d -lTKMeshVS -lTKShHealing -lTKPrim

#uninstall-local:
# -rm -rf $(DESTDIR)$(libdir)
Expand Down

0 comments on commit 1f162de

Please sign in to comment.