Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Boards
Labels
Milestones
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
9885aac6
Commit
9885aac6
authored
Mar 03, 2015
by
BRAMAS Berenger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add check before using a flag to ensure clang can compile
parent
09e9b58e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
CMakeLists.txt
CMakeLists.txt
+5
-1
No files found.
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