Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
morse_cmake
Commits
95a50a03
Commit
95a50a03
authored
Feb 13, 2018
by
PRUVOST Florent
Browse files
use OPENMP_C_FLAGS list instead of blind guesses (thanks Xavier Lacoste for having reported it)
parent
bd82e0b8
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
modules/find/FindBLAS.cmake
View file @
95a50a03
...
...
@@ -3,7 +3,7 @@
# @copyright (c) 2009-2014 The University of Tennessee and The University
# of Tennessee Research Foundation.
# All rights reserved.
# @copyright (c) 2012-201
6
Inria. All rights reserved.
# @copyright (c) 2012-201
8
Inria. All rights reserved.
# @copyright (c) 2012-2014 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
#
###
...
...
@@ -479,11 +479,13 @@ if (BLA_VENDOR MATCHES "Intel*" OR BLA_VENDOR STREQUAL "All")
endif
()
set
(
BLAS_COMPILER_FLAGS
""
)
if
(
NOT BLA_VENDOR STREQUAL
"Intel10_64lp_seq"
)
if
(
CMAKE_C_COMPILER_ID STREQUAL
"Intel"
)
list
(
APPEND BLAS_COMPILER_FLAGS
"-openmp"
)
if
(
BLAS_FIND_REQUIRED
)
find_package
(
OpenMP REQUIRED
)
else
()
find_package
(
OpenMP
)
endif
()
if
(
CMAKE_C_COMPILER_ID STREQUAL
"GNU"
)
list
(
APPEND BLAS_COMPILER_FLAGS
"
-fopenmp
"
)
if
(
OPENMP_C_FLAGS
)
list
(
APPEND BLAS_COMPILER_FLAGS
"
${
OPENMP_C_FLAGS
}
"
)
endif
()
endif
()
if
(
CMAKE_C_COMPILER_ID STREQUAL
"GNU"
)
...
...
modules/find/FindFFTW.cmake
View file @
95a50a03
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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