Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Trip Event Logger Config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
MSK-SW
Low-Level Radio Frequency
Trip Event Logger
Trip Event Logger Config
Commits
78bd96c9
Commit
78bd96c9
authored
5 years ago
by
Martin Christoph Hierholzer
Browse files
Options
Downloads
Patches
Plain Diff
removed enable_cxx11_support.cmake, as we must not use it any more
parent
89ad532c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/enable_cxx11_support.cmake
+0
-41
0 additions, 41 deletions
cmake/enable_cxx11_support.cmake
with
0 additions
and
41 deletions
cmake/enable_cxx11_support.cmake
deleted
100644 → 0
+
0
−
41
View file @
89ad532c
#######################################################################################################################
# enable_cxx11_support.cmake
#
# NOTE: Do not use this routine! Use enable_latest_css_support.cmake instead, even if you only need C++11, as the
# compiler always uses the strictest ("oldest") specified standard if mulitple flags are given. This will create
# problems when combining multiple projects (libraries...) requiring different C++ standards.
#
# Enable C++-11 support by selecting the appropriate compiler flag. The flag will be appended to all of the following
# cmake variables:
# - CMAKE_CXX_FLAGS
# - ${PROJECT_NAME}_CXX_FLAGS
# - ${PROJECT_NAME}_CMAKE_CXX_FLAGS
#
#######################################################################################################################
#######################################################################################################################
#
# IMPORTANT NOTE:
#
# DO NOT MODIFY THIS FILE inside a project. Instead update the project-template repository and pull the change from
# there. Make sure to keep the file generic, since it will be used by other projects, too.
#
# If you have modified this file inside a project despite this warning, make sure to cherry-pick all your changes
# into the project-template repository immediately.
#
#######################################################################################################################
include
(
CheckCXXCompilerFlag
)
CHECK_CXX_COMPILER_FLAG
(
"-std=c++11"
COMPILER_SUPPORTS_CXX11
)
CHECK_CXX_COMPILER_FLAG
(
"-std=c++0x"
COMPILER_SUPPORTS_CXX0X
)
if
(
COMPILER_SUPPORTS_CXX11
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++11"
)
set
(
${
PROJECT_NAME
}
_CXX_FLAGS
"
${${
PROJECT_NAME
}
_CXX_FLAGS
}
-std=c++11"
)
set
(
${
PROJECT_NAME
}
_CMAKE_CXX_FLAGS
"
${${
PROJECT_NAME
}
_CMAKE_CXX_FLAGS
}
-std=c++11"
)
elseif
(
COMPILER_SUPPORTS_CXX0X
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++0x"
)
set
(
${
PROJECT_NAME
}
_CXX_FLAGS
"
${${
PROJECT_NAME
}
_CXX_FLAGS
}
-std=c++0x"
)
set
(
${
PROJECT_NAME
}
_CMAKE_CXX_FLAGS
"
${${
PROJECT_NAME
}
_CMAKE_CXX_FLAGS
}
-std=c++0x"
)
else
()
message
(
STATUS
"The compiler
${
CMAKE_CXX_COMPILER
}
has no C++11 support. Please use a different C++ compiler."
)
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