From f1114745fba9674d43adbb212044c2d58c1497c5 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 19 Aug 2025 15:33:31 +0500 Subject: [PATCH] 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'. --- cmake/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 2c6aed06a3..ec8d5686cd 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -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