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
c3b152c7
Commit
c3b152c7
authored
Apr 24, 2018
by
Corentin Le Molgat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMake: Update CXX Standard management
parent
8417871a
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 @
c3b152c7
# 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