clean FindOCC.cmake (#19755)
* clean FindOCC.cmake cmake version is always major then 3.16.3 . * Update cMake/FindOCC.cmake Co-authored-by: Benjamin Bræstrup Sayoc <[email protected]> * Update cMake/FindOCC.cmake Co-authored-by: Benjamin Bræstrup Sayoc <[email protected]> --------- Co-authored-by: Benjamin Bræstrup Sayoc <[email protected]>
This commit is contained in:
co-authored by
Benjamin Bræstrup Sayoc
parent
7f465825a4
commit
1ab8bed308
+4
-6
@@ -10,12 +10,10 @@
|
||||
# we first try to find opencascade directly:
|
||||
if (NOT OCCT_CMAKE_FALLBACK)
|
||||
find_package(OpenCASCADE CONFIG QUIET)
|
||||
if (NOT (CMAKE_VERSION VERSION_LESS 3.6.0))
|
||||
get_property(flags DIRECTORY PROPERTY COMPILE_DEFINITIONS)
|
||||
# OCCT 7.5 adds this define that causes hundreds of compiler warnings with Qt5.x, so remove it again
|
||||
list(FILTER flags EXCLUDE REGEX [[GL_GLEXT_LEGACY]])
|
||||
set_property(DIRECTORY PROPERTY COMPILE_DEFINITIONS ${flags})
|
||||
endif ()
|
||||
get_property(flags DIRECTORY PROPERTY COMPILE_DEFINITIONS)
|
||||
# OCCT 7.5 adds this define that causes hundreds of compiler warnings with Qt5.x, so remove it again
|
||||
list(FILTER flags EXCLUDE REGEX [[GL_GLEXT_LEGACY]])
|
||||
set_property(DIRECTORY PROPERTY COMPILE_DEFINITIONS ${flags})
|
||||
endif ()
|
||||
if (OpenCASCADE_FOUND)
|
||||
set(OCC_FOUND ${OpenCASCADE_FOUND})
|
||||
|
||||
Reference in New Issue
Block a user