Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gnss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
mobile_robotics
wolf_projects
wolf_lib
plugins
gnss
Commits
26fbdcfe
Commit
26fbdcfe
authored
5 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Fix plugin name in cmakefile
parent
076385d8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!28
release after RAL
,
!27
After 2nd RAL submission
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+13
-10
13 additions, 10 deletions
CMakeLists.txt
with
13 additions
and
10 deletions
CMakeLists.txt
+
13
−
10
View file @
26fbdcfe
...
...
@@ -236,16 +236,6 @@ SET(SRCS_YAML
# ENDIF(Ceres_FOUND)
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"Clang"
)
message
(
STATUS
"Using C++ compiler clang"
)
target_compile_options
(
${
PROJECT_NAME
}
PRIVATE -Winconsistent-missing-override
)
# using Clang
elseif
(
CMAKE_CXX_COMPILER_ID STREQUAL
"GNU"
)
message
(
STATUS
"Using C++ compiler gnu"
)
target_compile_options
(
${
PROJECT_NAME
}
PRIVATE -Wsuggest-override
)
# using GCC
endif
()
# create the shared library
ADD_LIBRARY
(
${
PLUGIN_NAME
}
SHARED
...
...
@@ -265,6 +255,19 @@ ADD_LIBRARY(${PLUGIN_NAME}
${
SRCS_YAML
}
)
# Set compiler options
# ====================
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"Clang"
)
message
(
STATUS
"Using C++ compiler clang"
)
target_compile_options
(
${
PLUGIN_NAME
}
PRIVATE -Winconsistent-missing-override
)
# using Clang
elseif
(
CMAKE_CXX_COMPILER_ID STREQUAL
"GNU"
)
message
(
STATUS
"Using C++ compiler gnu"
)
target_compile_options
(
${
PLUGIN_NAME
}
PRIVATE -Wsuggest-override
)
# using GCC
endif
()
#Link the created libraries
#===============EXAMPLE=========================
TARGET_LINK_LIBRARIES
(
${
PLUGIN_NAME
}
${
wolf_LIBRARIES
}
)
...
...
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