Salome HOME
Ensure cmake_build_type is used in SALOME 9.12.0
[tools/sat_salome.git] / products / patches / openturns-1.21.0001.patch
1 --- openturns_ref/openturns-1.21/CMakeLists.txt 2023-09-21 11:22:25.194024611 +0200
2 +++ openturns_dev/openturns-1.21/CMakeLists.txt 2023-09-21 11:23:25.994024043 +0200
3 @@ -288,7 +288,11 @@
4  endif ()
5  
6  if (USE_NLOPT)
7 -  find_package (NLopt CONFIG QUIET)
8 +  SET(NLOPT_ROOT_DIR $ENV{NLOPT_ROOT_DIR} CACHE PATH "Path to the NLOPT.")
9 +  IF(NLOPT_ROOT_DIR)
10 +    LIST(APPEND CMAKE_PREFIX_PATH "${NLOPT_ROOT_DIR}")
11 +  ENDIF(NLOPT_ROOT_DIR)
12 +  find_package (NLopt)
13    if (NLopt_FOUND)
14      message(STATUS "Found NLopt: ${NLopt_DIR}  (found version \"${NLopt_VERSION}\")")
15    else ()