Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
9885aac6
Commit
9885aac6
authored
Mar 03, 2015
by
BRAMAS Berenger
Browse files
Add check before using a flag to ensure clang can compile
parent
09e9b58e
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
9885aac6
...
...
@@ -117,7 +117,11 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/CMakeModules/morse/")
else
()
# NOT INTEL
if
(
NOT ScalFMM_USE_MPI
)
set
(
ScalFMM_CXX_FLAGS
"
${
ScalFMM_CXX_FLAGS
}
-Wzero-as-null-pointer-constant"
)
include
(
CheckCCompilerFlag
)
check_c_compiler_flag
(
-Wzero-as-null-pointer-constant HAS_WZERO_NULL_PTR_FLAG
)
if
(
HAS_WZERO_NULL_PTR_FLAG
)
set
(
ScalFMM_CXX_FLAGS
"
${
ScalFMM_CXX_FLAGS
}
-Wzero-as-null-pointer-constant"
)
endif
()
else
()
include
(
CheckCCompilerFlag
)
check_c_compiler_flag
(
-Wno-literal-suffix HAS_NO_LITERAL_SUFFIX_FLAG
)
...
...
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