mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 22:10:00 +00:00
cmake - fix OCC_INCLUDE_DIR strequal check working only once
If OCC_INCLUDE_DIR is not provided, then first it would pass, but the next time wouldn't since variable value would be 'OCC_INCLUDE_DIR-NOTFOUND'.
This commit is contained in:
@@ -385,7 +385,7 @@ if(BUILD_IFCGEOM)
|
|||||||
|
|
||||||
# Open CASCADE
|
# Open CASCADE
|
||||||
if(WITH_OPENCASCADE)
|
if(WITH_OPENCASCADE)
|
||||||
if("${OCC_INCLUDE_DIR}" STREQUAL "")
|
if(NOT OCC_INCLUDE_DIR)
|
||||||
clear_wasm_sysroot()
|
clear_wasm_sysroot()
|
||||||
find_path(OCC_INCLUDE_DIR Standard_Version.hxx
|
find_path(OCC_INCLUDE_DIR Standard_Version.hxx
|
||||||
PATHS
|
PATHS
|
||||||
|
|||||||
Reference in New Issue
Block a user