Salome HOME
Ensure cmake_build_type is used in SALOME 9.12.0
[tools/sat_salome.git] / products / patches / cminpack-1.3.6-openblas.patch
1 diff -Naur  cminpack-1.3.6_ref/CMakeLists.txt cminpack-1.3.6_dev/CMakeLists.txt
2 --- cminpack-1.3.6_ref/CMakeLists.txt   2017-02-24 16:09:31.000000000 +0100
3 +++ cminpack-1.3.6_dev/CMakeLists.txt   2023-05-22 09:19:37.416506078 +0200
4 @@ -69,6 +69,8 @@
5  
6  # Link with a BLAS library if requested
7  if (USE_BLAS)
8 +  SET(BLAS_ROOT_DIR $ENV{BLAS_ROOT_DIR} CACHE PATH "Path to the BLAS.")
9 +  SET(BLAS_INCLUDE_DIRS "${BLAS_ROOT_DIR}/include/openblas")
10    if (NOT BUILD_SHARED_LIBS)
11      set(BLA_STATIC True)
12    endif()
13 @@ -77,6 +79,7 @@
14      target_link_libraries(cminpack PUBLIC ${BLAS_LIBRARIES})
15      set_target_properties(cminpack PROPERTIES LINK_FLAGS "${BLAS_LINKER_FLAGS}")
16      target_compile_definitions(cminpack PUBLIC -DUSE_CBLAS)
17 +         include_directories(${BLAS_ROOT_DIR}/include/openblas)
18    endif()
19  endif()
20  
21 @@ -94,4 +97,4 @@
22  set_target_properties(cminpack PROPERTIES VERSION ${CMINPACK_VERSION} SOVERSION ${CMINPACK_SOVERSION})
23  
24  add_subdirectory (cmake)
25 -add_subdirectory (examples)
26 \ Pas de fin de ligne à la fin du fichier
27 +add_subdirectory (examples)