Salome HOME
Ensure cmake_build_type is used in SALOME 9.12.0
[tools/sat_salome.git] / products / patches / openturns-1.20.1.0002.patch
1 --- openturns_ref/openturns-1.20.1/CMakeLists.txt       2023-03-31 13:11:11.000000000 +0200
2 +++ openturns_dev/openturns-1.20.1/CMakeLists.txt       2023-04-05 11:34:07.224075227 +0200
3 @@ -315,7 +315,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 ()