Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Chameleon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
479a17f0
Commit
479a17f0
authored
Mar 04, 2015
by
PRUVOST Florent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add gcc flag --no-as-needed only if gnu and Linux
parent
7382e524
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
+14
-6
CMakeLists.txt
CMakeLists.txt
+3
-3
cmake_modules/morse/find/FindBLAS.cmake
cmake_modules/morse/find/FindBLAS.cmake
+4
-1
cmake_modules/morse/find/FindFFTW.cmake
cmake_modules/morse/find/FindFFTW.cmake
+3
-1
cmake_modules/morse/find/FindLAPACK.cmake
cmake_modules/morse/find/FindLAPACK.cmake
+4
-1
No files found.
CMakeLists.txt
View file @
479a17f0
...
...
@@ -880,11 +880,11 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
get_directory_property
(
CHAMELEON_DEFINITIONS_LIST DIRECTORY
${
CMAKE_SOURCE_DIR
}
COMPILE_DEFINITIONS
)
include
(
PrintOpts
)
if
(
${
CMAKE_INSTALL_PREFIX
}
STREQUAL
"/usr/local"
OR
${
CMAKE_INSTALL_PREFIX
}
STREQUAL
"C:/Program Files"
)
if
(
CMAKE_INSTALL_PREFIX STREQUAL
"/usr/local"
OR CMAKE_INSTALL_PREFIX
STREQUAL
"C:/Program Files"
)
message
(
"--
${
Yellow
}
Your CMAKE_INSTALL_PREFIX is
${
CMAKE_INSTALL_PREFIX
}
which is a default system path."
"You may want to change it: set the CMAKE_INSTALL_PREFIX variable to do so
.
${
ColourReset
}
"
)
"You may want to change it: set the CMAKE_INSTALL_PREFIX variable to do so
${
ColourReset
}
"
)
else
()
message
(
"--
${
Yellow
}
Your CMAKE_INSTALL_PREFIX is
${
CMAKE_INSTALL_PREFIX
}
.
${
ColourReset
}
"
)
message
(
"--
${
Yellow
}
Your CMAKE_INSTALL_PREFIX is
${
CMAKE_INSTALL_PREFIX
}${
ColourReset
}
"
)
endif
()
else
(
MORSE_DISTRIB_DIR OR EXISTS
"
${
CMAKE_SOURCE_DIR
}
/cmake_modules/"
)
...
...
cmake_modules/morse/find/FindBLAS.cmake
View file @
479a17f0
...
...
@@ -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
)
...
...
cmake_modules/morse/find/FindFFTW.cmake
View file @
479a17f0
...
...
@@ -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
...
...
cmake_modules/morse/find/FindLAPACK.cmake
View file @
479a17f0
...
...
@@ -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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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