Attention une mise à jour du serveur va être effectuée le vendredi 16 avril entre 12h et 12h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit b05e99d1 authored by Florent Pruvost's avatar Florent Pruvost

add lib math dependendy for fftw under some conditions UNIX, WIN32

parent e9430df8
......@@ -424,7 +424,7 @@ if (BLA_VENDOR MATCHES "Intel*" OR BLA_VENDOR STREQUAL "All")
set(OMP_LIB "${OMP_iomp5_LIBRARY}")
endif()
if (NOT WIN32)
if (UNIX AND NOT WIN32)
set(LM "-lm")
set(BLAS_COMPILER_FLAGS "")
if (CMAKE_C_COMPILER_ID STREQUAL "Intel" AND NOT BLA_VENDOR STREQUAL "Intel10_64lp_seq")
......
......@@ -435,6 +435,9 @@ if(FFTW_LIBRARIES)
list(APPEND REQUIRED_LDFLAGS "-Wl,--no-as-needed")
endif()
endif()
if(UNIX OR WIN32)
list(APPEND REQUIRED_LIBS "-lm")
endif()
# set required libraries for link
set(CMAKE_REQUIRED_INCLUDES "${REQUIRED_INCDIRS}")
......
......@@ -332,7 +332,7 @@ if(BLAS_FOUND)
#intel lapack
if (BLA_VENDOR MATCHES "Intel" OR BLA_VENDOR STREQUAL "All")
if (NOT WIN32)
if (UNIX AND NOT WIN32)
set(LM "-lm")
endif ()
if (_LANGUAGES_ MATCHES C OR _LANGUAGES_ MATCHES CXX)
......
......@@ -309,7 +309,9 @@ if (LAPACK_FOUND)
list(APPEND REQUIRED_LIBS "-lifcore")
endif()
# m
list(APPEND REQUIRED_LIBS "-lm")
if(UNIX OR WIN32)
list(APPEND REQUIRED_LIBS "-lm")
endif()
# set required libraries for link
set(CMAKE_REQUIRED_INCLUDES "${REQUIRED_INCDIRS}")
......
......@@ -360,7 +360,7 @@ if (BLA_VENDOR STREQUAL "Generic" OR
endif ()
#intel scalapack
if (BLA_VENDOR MATCHES "Intel" OR BLA_VENDOR STREQUAL "All")
if (NOT WIN32)
if (UNIX AND NOT WIN32)
set(LM "-lm")
endif ()
if (_LANGUAGES_ MATCHES C OR _LANGUAGES_ MATCHES CXX)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment