Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iri_ground_segmentation
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
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
Iván del Pino
iri_ground_segmentation
Commits
9ae46093
Commit
9ae46093
authored
1 year ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Commented the part of the CMakeLists.txt to set a specific compiler version.
parent
c47830ed
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
+12
-12
12 additions, 12 deletions
CMakeLists.txt
with
12 additions
and
12 deletions
CMakeLists.txt
+
12
−
12
View file @
9ae46093
...
@@ -11,18 +11,18 @@ if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
...
@@ -11,18 +11,18 @@ if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
endif
()
endif
()
#Set compiler according C++11 support
#Set compiler according C++11 support
include
(
CheckCXXCompilerFlag
)
#
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG
(
"-std=c++11"
COMPILER_SUPPORTS_CXX11
)
#
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
CHECK_CXX_COMPILER_FLAG
(
"-std=c++0x"
COMPILER_SUPPORTS_CXX0X
)
#
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if
(
COMPILER_SUPPORTS_CXX11
)
#
if(COMPILER_SUPPORTS_CXX11)
message
(
STATUS
"The compiler
${
CMAKE_CXX_COMPILER
}
has C++11 support."
)
#
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=c++11")
elseif
(
COMPILER_SUPPORTS_CXX0X
)
#
elseif(COMPILER_SUPPORTS_CXX0X)
message
(
STATUS
"The compiler
${
CMAKE_CXX_COMPILER
}
has C++0x support."
)
#
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=c++0x")
else
()
#
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
()
#
endif()
## Find catkin macros and libraries
## Find catkin macros and libraries
find_package
(
catkin REQUIRED
)
find_package
(
catkin REQUIRED
)
...
...
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