Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Corryvreckan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Fabian Simon Lex
Corryvreckan
Commits
f2252aa7
Commit
f2252aa7
authored
3 years ago
by
Simon Spannagel
Browse files
Options
Downloads
Patches
Plain Diff
CMake: check that ROOT has C++17
parent
37c494aa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+1
-3
1 addition, 3 deletions
CMakeLists.txt
with
1 addition
and
3 deletions
CMakeLists.txt
+
1
−
3
View file @
f2252aa7
...
@@ -148,10 +148,8 @@ IF(ROOT_CXX_FLAGS MATCHES ".*std=c\\+\\+1[7z].*")
...
@@ -148,10 +148,8 @@ IF(ROOT_CXX_FLAGS MATCHES ".*std=c\\+\\+1[7z].*")
IF
(
NOT SUPPORT_STD_CXX17
)
IF
(
NOT SUPPORT_STD_CXX17
)
MESSAGE
(
FATAL_ERROR
"ROOT was built with C++17 support but current compiler doesn't support it"
)
MESSAGE
(
FATAL_ERROR
"ROOT was built with C++17 support but current compiler doesn't support it"
)
ENDIF
()
ENDIF
()
ELSEIF
(
ROOT_CXX_FLAGS MATCHES
".*std=c
\\
+
\\
+1[14y].*"
)
SET
(
CMAKE_CXX_STANDARD 14
)
ELSEIF
(
ROOT_CXX_FLAGS MATCHES
".*std=c
\\
+
\\
+.*"
)
ELSEIF
(
ROOT_CXX_FLAGS MATCHES
".*std=c
\\
+
\\
+.*"
)
MESSAGE
(
FATAL_ERROR
"ROOT was built with an unsupported C++ version:
${
ROOT_CXX_FLAGS
}
"
)
MESSAGE
(
FATAL_ERROR
"ROOT was built with an unsupported C++ version
, C++17 is required
:
${
ROOT_CXX_FLAGS
}
"
)
ELSE
()
ELSE
()
MESSAGE
(
FATAL_ERROR
"Could not deduce ROOT's C++ version from build flags:
${
ROOT_CXX_FLAGS
}
"
)
MESSAGE
(
FATAL_ERROR
"Could not deduce ROOT's C++ version from build flags:
${
ROOT_CXX_FLAGS
}
"
)
ENDIF
()
ENDIF
()
...
...
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