Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
27b28734
There was an error fetching the commit references. Please try again later.
Commit
27b28734
authored
6 years ago
by
Jakub Klinkovský
Browse files
Options
Downloads
Patches
Plain Diff
Switch to C++14
parent
5dce2ff7
No related branches found
No related tags found
1 merge request
!31
Code revision
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+8
-3
8 additions, 3 deletions
CMakeLists.txt
with
8 additions
and
3 deletions
CMakeLists.txt
+
8
−
3
View file @
27b28734
...
...
@@ -62,8 +62,8 @@ endif()
# check if the compiler is good enough
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"GNU"
)
# GCC 5.0 is the first release with full C++11 support (due to libstdc++)
# https://gcc.gnu.org/gcc-5/changes.html
# GCC 5.0 is the first release with full C++11 support (due to libstdc++)
as
#
well as full C++14 support:
https://gcc.gnu.org/gcc-5/changes.html
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_LESS
"5.0"
)
message
(
FATAL_ERROR
"Insufficient GCC version"
)
endif
()
...
...
@@ -74,8 +74,13 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
endif
()
endif
()
# set C++ standard
set
(
CMAKE_CXX_STANDARD 14
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
set
(
CMAKE_CXX_EXTENSIONS OFF
)
# set Debug/Release options
set
(
CMAKE_CXX_FLAGS
"
-std=c++11
-pthread -Wall -Wno-unused-local-typedefs -Wno-unused-variable"
)
set
(
CMAKE_CXX_FLAGS
"-pthread -Wall -Wno-unused-local-typedefs -Wno-unused-variable"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-g"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"-O3 -march=native -mtune=native -DNDEBUG"
)
#set( CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native -mtune=native -DNDEBUG -ftree-vectorizer-verbose=1 -ftree-vectorize -fopt-info-vec-missed -funroll-loops" )
...
...
This diff is collapsed.
Click to expand it.
Jakub Klinkovský
@klinkovsky
mentioned in merge request
!32 (merged)
·
5 years ago
mentioned in merge request
!32 (merged)
mentioned in merge request !32
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment