Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
318cf5bf
Commit
318cf5bf
authored
Mar 04, 2015
by
Florent Pruvost
Browse files
add gcc flag --no-as-needed only if gnu and Linux
parent
ed1bd46a
Changes
3
Hide whitespace changes
Inline
Side-by-side
CMakeModules/morse/find/FindBLAS.cmake
View file @
318cf5bf
...
...
@@ -307,7 +307,10 @@ if (BLA_VENDOR MATCHES "Intel*" OR BLA_VENDOR STREQUAL "All")
set
(
BLAS_SEARCH_LIBS
""
)
set
(
additional_flags
"-Wl,--no-as-needed"
)
set
(
additional_flags
""
)
if
(
CMAKE_C_COMPILER_ID STREQUAL
"GNU"
AND CMAKE_SYSTEM_NAME STREQUAL
"Linux"
)
set
(
additional_flags
"-Wl,--no-as-needed"
)
endif
()
if
(
BLA_F95
)
...
...
CMakeModules/morse/find/FindFFTW.cmake
View file @
318cf5bf
...
...
@@ -373,7 +373,9 @@ if( NOT FFTW_FOUND )
# MKL
if
(
FFTW_LOOK_FOR_MKL
)
list
(
APPEND REQUIRED_LIBS
"
${
CMAKE_THREAD_LIBS_INIT
}
;-lm"
)
list
(
APPEND REQUIRED_LDFLAGS
"-Wl,--no-as-needed"
)
if
(
CMAKE_C_COMPILER_ID STREQUAL
"GNU"
AND CMAKE_SYSTEM_NAME STREQUAL
"Linux"
)
list
(
APPEND REQUIRED_LDFLAGS
"-Wl,--no-as-needed"
)
endif
()
endif
()
# set required libraries for link
...
...
CMakeModules/morse/find/FindLAPACK.cmake
View file @
318cf5bf
...
...
@@ -366,7 +366,10 @@ if (BLA_VENDOR MATCHES "Intel" OR BLA_VENDOR STREQUAL "All")
set
(
LAPACK_SEARCH_LIBS
""
)
set
(
additional_flags
"-Wl,--no-as-needed"
)
set
(
additional_flags
""
)
if
(
CMAKE_C_COMPILER_ID STREQUAL
"GNU"
AND CMAKE_SYSTEM_NAME STREQUAL
"Linux"
)
set
(
additional_flags
"-Wl,--no-as-needed"
)
endif
()
if
(
BLA_F95
)
set
(
LAPACK_mkl_SEARCH_SYMBOL
"CHEEV"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment