Salome HOME
Ensure cmake_build_type is used in SALOME 9.12.0
[tools/sat_salome.git] / products / patches / PERSALYS-v14.1-002.patch
1 --- persalys-14.1_ref/CMakeLists.txt    2023-07-25 11:23:39.000000000 +0200
2 +++ persalys-14.1_dev/CMakeLists.txt    2023-09-26 12:57:40.000000000 +0200
3 @@ -64,9 +64,16 @@
4    set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
5  endif ()
6  
7 +SET(BOOST_ROOT_DIR $ENV{BOOST_ROOT_DIR} CACHE PATH "Path to the Boost")
8 +if(EXISTS "${BOOST_ROOT_DIR}")
9 +  set(BOOST_ROOT "${BOOST_ROOT_DIR}" CACHE PATH "Boost root directory" FORCE)
10 +endif()
11 +set(Boost_USE_DEBUG_LIBS   OFF) # ignore debug libs and
12 +set(Boost_USE_RELEASE_LIBS ON)  # only find release libsfind_package (Boost COMPONENTS filesystem locale REQUIRED)
13  find_package (Boost COMPONENTS filesystem locale REQUIRED)
14 -list (APPEND PERSALYS_PRIVATE_LIBRARIES ${Boost_LIBRARIES})
15 -
16 +if (TARGET Boost::filesystem)
17 +  set (Boost_LIBRARIES Boost::filesystem Boost::locale)
18 +ENDIF()
19  find_package (Python 3.5 COMPONENTS Interpreter Development REQUIRED)
20  list (APPEND PERSALYS_PUBLIC_LIBRARIES ${Python_LIBRARIES})
21