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
yangql
googletest
Commits
478a5185
Unverified
Commit
478a5185
authored
Oct 24, 2018
by
peter
Browse files
Disable extensions and force standard
parent
f6dadcf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
CMakeLists.txt
CMakeLists.txt
+2
-0
No files found.
CMakeLists.txt
View file @
478a5185
...
@@ -4,6 +4,8 @@ if (CMAKE_VERSION VERSION_LESS "3.1")
...
@@ -4,6 +4,8 @@ if (CMAKE_VERSION VERSION_LESS "3.1")
add_definitions
(
-std=c++11
)
add_definitions
(
-std=c++11
)
else
()
else
()
set
(
CMAKE_CXX_STANDARD 11
)
set
(
CMAKE_CXX_STANDARD 11
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
set
(
CMAKE_CXX_EXTENSIONS OFF
)
endif
()
endif
()
if
(
POLICY CMP0048
)
if
(
POLICY CMP0048
)
...
...
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