Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
Tobias Leibner
dune-common
Commits
26ef684c
Commit
26ef684c
authored
11 years ago
by
Christoph Grüninger
Browse files
Options
Downloads
Patches
Plain Diff
[CMake] Add check for HAVE_CONSTEXPR.
parent
3693d3a1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/modules/CheckCXX11Features.cmake
+18
-0
18 additions, 0 deletions
cmake/modules/CheckCXX11Features.cmake
config.h.cmake
+3
-0
3 additions, 0 deletions
config.h.cmake
with
21 additions
and
0 deletions
cmake/modules/CheckCXX11Features.cmake
+
18
−
0
View file @
26ef684c
...
...
@@ -324,4 +324,22 @@ check_cxx_source_compiles("
"
HAVE_INITIALIZER_LIST
)
# constexpr
check_cxx_source_compiles
(
"
constexpr int foo()
{ return 0; }
template<int v>
struct A
{
static const int value = v;
};
int main(void)
{
return A<foo()>::value;
}
"
HAVE_CONSTEXPR
)
cmake_pop_check_state
()
This diff is collapsed.
Click to expand it.
config.h.cmake
+
3
−
0
View file @
26ef684c
...
...
@@ -160,6 +160,9 @@
/* Define to 1 if initializer list is supported */
#cmakedefine HAVE_INITIALIZER_LIST 1
/* Define to 1 if C++11 constexpr is supported */
#cmakedefine HAVE_CONSTEXPR 1
/* Define to if the UMFPack library is available */
#cmakedefine HAVE_UMFPACK ENABLE_UMFPACK
...
...
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