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
844659dd
Commit
844659dd
authored
3 years ago
by
Mederic Fourmy
Browse files
Options
Downloads
Patches
Plain Diff
[skip-ci] Fix config.h creation after having broken it
parent
30386f31
No related branches found
No related tags found
2 merge requests
!35
After cmake and const refactor
,
!34
Resolve "Adapt to core CMakeLists.txt refactor"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+2
-0
2 additions, 0 deletions
CMakeLists.txt
internal/config.h.in
+3
-3
3 additions, 3 deletions
internal/config.h.in
with
5 additions
and
3 deletions
CMakeLists.txt
+
2
−
0
View file @
844659dd
...
...
@@ -81,6 +81,8 @@ FIND_PACKAGE(gnss_utils REQUIRED)
# ============ CONFIG.H ============
set
(
_WOLF_ROOT_DIR
${
CMAKE_SOURCE_DIR
}
)
# variable used to compile the config.h.in file
string
(
TOUPPER
${
PROJECT_NAME
}
PROJECT_NAME_UPPER
)
# Define the directory where will be the configured config.h
SET
(
WOLF_CONFIG_DIR
${
PROJECT_BINARY_DIR
}
/conf/
${
PROJECT_NAME
}
/internal
)
...
...
This diff is collapsed.
Click to expand it.
internal/config.h.in
+
3
−
3
View file @
844659dd
...
...
@@ -24,13 +24,13 @@
// which will be added to the include path for compilation,
// and installed with the public wolf headers.
#ifndef WOLF_INTERNAL_${UPPER
_NAME
}_CONFIG_H_
#define WOLF_INTERNAL_${UPPER
_NAME
}_CONFIG_H_
#ifndef WOLF_INTERNAL_${
PROJECT_NAME_
UPPER}_CONFIG_H_
#define WOLF_INTERNAL_${
PROJECT_NAME_
UPPER}_CONFIG_H_
#cmakedefine _WOLF_DEBUG
#cmakedefine _WOLF_TRACE
#define _WOLF_${UPPER
_NAME
}_ROOT_DIR "${_WOLF_ROOT_DIR}"
#define _WOLF_${
PROJECT_NAME_
UPPER}_ROOT_DIR "${_WOLF_ROOT_DIR}"
#endif /* WOLF_INTERNAL_CONFIG_H_ */
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