Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
8d63aa95
Commit
8d63aa95
authored
6 years ago
by
Peterson, Peter
Browse files
Options
Downloads
Patches
Plain Diff
Move declaration of c++14 standard
parent
520396b2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
buildconfig/CMake/CommonSetup.cmake
+6
-0
6 additions, 0 deletions
buildconfig/CMake/CommonSetup.cmake
buildconfig/CMake/GNUSetup.cmake
+1
-4
1 addition, 4 deletions
buildconfig/CMake/GNUSetup.cmake
with
7 additions
and
4 deletions
buildconfig/CMake/CommonSetup.cmake
+
6
−
0
View file @
8d63aa95
...
...
@@ -241,6 +241,12 @@ if ( ${CMAKE_SYSTEM_NAME} STREQUAL "Linux" )
include
(
LinuxSetup
)
endif
()
###########################################################################
# Set the c++ standard to 14 - cmake should do the right thing with msvc
###########################################################################
set
(
CMAKE_CXX_STANDARD 14
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
###########################################################################
# Add compiler options if using gcc
###########################################################################
...
...
This diff is collapsed.
Click to expand it.
buildconfig/CMake/GNUSetup.cmake
+
1
−
4
View file @
8d63aa95
...
...
@@ -96,10 +96,7 @@ if(WITH_UBSAN)
set
(
CMAKE_SHARED_LINKER_FLAGS
"
${
CMAKE_SHARED_LINKER_FLAGS
}
${
SAN_FLAGS
}
"
)
endif
()
set
(
CMAKE_CXX_STANDARD 14
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
# XCode isn't picking up the standard set above.
# XCode isn't picking up the c++ standard by CMAKE_CXX_STANDARD
if
(
CMAKE_GENERATOR STREQUAL Xcode
)
set
(
CMAKE_XCODE_ATTRIBUTE_OTHER_CPLUSPLUSFLAGS
"
${
GNUFLAGS
}
-Woverloaded-virtual -fno-operator-names"
)
set
(
CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD
"c++14"
)
...
...
This diff is collapsed.
Click to expand it.
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