From 3e3fe83c5ba7e2875e036e1316eee2bfdebb18e9 Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 13 Feb 2020 14:39:57 +0300 Subject: [PATCH] Use ${OpenCASCADE_BUILD_WITH_DEBUG} instead of ${OpenCASCADE_BUILD_TYPE} --- cmake/FindSalomeOpenCASCADE.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindSalomeOpenCASCADE.cmake b/cmake/FindSalomeOpenCASCADE.cmake index 8dea8df..60c7859 100644 --- a/cmake/FindSalomeOpenCASCADE.cmake +++ b/cmake/FindSalomeOpenCASCADE.cmake @@ -48,7 +48,7 @@ IF(OpenCASCADE_FOUND) # In Debug ${OpenCASCADE_BINARY_DIR} and ${OpenCASCADE_LIBRARY_DIR} are stored in the # config file w/o "d" suffix. To be checked with latest version of OCCT. SET(SUFF "") - IF(${OpenCASCADE_BUILD_TYPE} STREQUAL "Debug") + IF(${OpenCASCADE_BUILD_WITH_DEBUG}) SET(SUFF "d") ENDIF() SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${OpenCASCADE_BINARY_DIR}${SUFF}) -- 2.39.2