Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gnss_utils
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
Model registry
Operate
Environments
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
labrobotica
algorithms
gnss_utils
Merge requests
!26
cmake fixes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
cmake fixes
devel
into
main
Overview
0
Commits
9
Pipelines
1
Changes
1
Merged
Joan Vallvé Navarro
requested to merge
devel
into
main
2 years ago
Overview
0
Commits
9
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
3037c0d6
Prev
Next
Show latest version
1 file
+
3
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
3037c0d6
c++11 mandatory
· 3037c0d6
Joan Vallvé Navarro
authored
2 years ago
CMakeLists.txt
+
3
−
9
Options
@@ -25,17 +25,11 @@ SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -D_REENTRANT")
#Set compiler according C++11 support
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
)
message
(
STATUS
"The compiler
${
CMAKE_CXX_COMPILER
}
has C++11 support."
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++11"
)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c99")
elseif
(
COMPILER_SUPPORTS_CXX0X
)
message
(
STATUS
"The compiler
${
CMAKE_CXX_COMPILER
}
has C++0x support."
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++0x"
)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c99")
message
(
STATUS
"The compiler
${
CMAKE_CXX_COMPILER
}
has C++11 support."
)
set
(
CMAKE_CXX_STANDARD 11
)
else
()
message
(
STATUS
"The compiler
${
CMAKE_CXX_COMPILER
}
has no C++11 support. Please use a different C++ compiler."
)
message
(
STATUS
"The compiler
${
CMAKE_CXX_COMPILER
}
has no C++11 support. Please use a different C++ compiler."
)
endif
()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fpermissive"
)
Loading