Salome HOME
merge from master
[tools/sat_salome.git] / products / patches / lapack-3.8.0_windows.patch
1 --- lapack/CMakeLists.txt
2 +++ lapack_fix/CMakeLists.txt
3 @@ -67,6 +67,10 @@
4  # Delete libmtsk in linking sequence for Sun/Oracle Fortran Compiler.
5  # This library is not present in the Sun package SolarisStudio12.3-linux-x86-bin
6    string(REPLACE \;mtsk\; \; CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES "${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES}")
7 +elseif(WIN32)
8 +  if("${CMAKE_Fortran_COMPILER}" MATCHES "gfortran")
9 +    set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Wl,--allow-multiple-definition")
10 +  endif()
11  endif()
12  
13  if(CMAKE_Fortran_COMPILER_ID STREQUAL "Compaq")