Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
7f2c3cec
Unverified
Commit
7f2c3cec
authored
Apr 27, 2018
by
Feng Xiao
Committed by
GitHub
Apr 27, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4550 from Mizux/master
CMake: Update CXX Standard management
parents
1b219a17
c3b152c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
CMakeLists.txt
cmake/CMakeLists.txt
+5
-3
No files found.
cmake/CMakeLists.txt
View file @
7f2c3cec
# Minimum CMake required
cmake_minimum_required
(
VERSION
2.8.12
)
cmake_minimum_required
(
VERSION
3.1.3
)
if
(
protobuf_VERBOSE
)
message
(
STATUS
"Protocol Buffers Configuring..."
)
...
...
@@ -15,8 +15,10 @@ endif()
# Project
project
(
protobuf C CXX
)
# Add c++11 flags for clang
set
(
CMAKE_CXX_FLAGS
"-std=c++11"
)
# Add c++11 flags
set
(
CMAKE_CXX_STANDARD 11
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
set
(
CMAKE_CXX_EXTENSIONS OFF
)
# Options
option
(
protobuf_BUILD_TESTS
"Build tests"
ON
)
...
...
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