reapply changes from 6f907c3b
avoiding to wrongly attribute the follwoing commit message to jobermayr Thew previous commit detects the OCC/OCE version by parsing Standard_Version.hxx using a REGEX. The result is saved as OCC_VERSION_STRING. The comparsion VERSION_LESS requires cmake version >= 2.8.0
This commit is contained in:
parent
f050733132
commit
2b01506c65
|
@ -18,7 +18,7 @@ endif()
|
|||
|
||||
find_package(OCE QUIET)
|
||||
if(OCE_FOUND)
|
||||
message("-- OpenCASCADE Community Edition has been found.")
|
||||
message(STATUS "-- OpenCASCADE Community Edition has been found.")
|
||||
add_definitions (-DHAVE_CONFIG_H)
|
||||
set(OCC_INCLUDE_DIR ${OCE_INCLUDE_DIRS})
|
||||
#set(OCC_LIBRARY_DIR ${OCE_LIBRARY_DIR})
|
||||
|
@ -121,9 +121,9 @@ if(OCC_FOUND)
|
|||
if(OCC_VERSION_STRING VERSION_LESS 6.7.3)
|
||||
list(APPEND OCC_OCAF_LIBRARIES TKAdvTools)
|
||||
endif(OCC_VERSION_STRING VERSION_LESS 6.7.3)
|
||||
message("-- Found OCE/OpenCASCADE version: ${OCC_VERSION_STRING}")
|
||||
message("-- OCE/OpenCASCADE include directory: ${OCC_INCLUDE_DIR}")
|
||||
message("-- OCE/OpenCASCADE shared libraries directory: ${OCC_LIBRARY_DIR}")
|
||||
message(STATUS "-- Found OCE/OpenCASCADE version: ${OCC_VERSION_STRING}")
|
||||
message(STATUS "-- OCE/OpenCASCADE include directory: ${OCC_INCLUDE_DIR}")
|
||||
message(STATUS "-- OCE/OpenCASCADE shared libraries directory: ${OCC_LIBRARY_DIR}")
|
||||
else(OCC_FOUND)
|
||||
message("Neither OpenCASCADE Community Edition nor OpenCasCade were found: will not build CAD modules!")
|
||||
endif(OCC_FOUND)
|
||||
|
|
Loading…
Reference in New Issue
Block a user