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:
Andrej730
2025-08-19 15:33:31 +05:00
parent 1d2b1dcbc8
commit f1114745fb
+1 -1
View File
@@ -385,7 +385,7 @@ if(BUILD_IFCGEOM)
# Open CASCADE
if(WITH_OPENCASCADE)
if("${OCC_INCLUDE_DIR}" STREQUAL "")
if(NOT OCC_INCLUDE_DIR)
clear_wasm_sysroot()
find_path(OCC_INCLUDE_DIR Standard_Version.hxx
PATHS