Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
3f33f337
Commit
3f33f337
authored
Nov 14, 2017
by
Ryan Schmidt
Committed by
Jesse Beder
Nov 14, 2017
Browse files
Only use -Wno-c99-extensions for clang
parent
5a519a4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
test/CMakeLists.txt
test/CMakeLists.txt
+5
-1
No files found.
test/CMakeLists.txt
View file @
3f33f337
...
@@ -10,7 +10,11 @@ endif()
...
@@ -10,7 +10,11 @@ endif()
if
(
CMAKE_CXX_COMPILER_ID MATCHES
"GNU"
OR
if
(
CMAKE_CXX_COMPILER_ID MATCHES
"GNU"
OR
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
set
(
yaml_test_flags
"-Wno-c99-extensions -Wno-variadic-macros -Wno-sign-compare"
)
set
(
yaml_test_flags
"-Wno-variadic-macros -Wno-sign-compare"
)
if
(
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
set
(
yaml_test_flags
"
${
yaml_test_flags
}
-Wno-c99-extensions"
)
endif
()
if
(
CMAKE_COMPILER_IS_GNUCXX
)
if
(
CMAKE_COMPILER_IS_GNUCXX
)
set
(
yaml_test_flags
"
${
yaml_test_flags
}
-std=gnu++11"
)
set
(
yaml_test_flags
"
${
yaml_test_flags
}
-std=gnu++11"
)
...
...
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