Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
eigenpy
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
Container Registry
Model registry
Operate
Environments
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
Stack Of Tasks
eigenpy
Commits
37ad9a1d
Unverified
Commit
37ad9a1d
authored
1 year ago
by
Justin Carpentier
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #446 from nim65s/cmake
CMake details
parents
f07d325b
1110b3e2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
CMakeLists.txt
+16
-4
16 additions, 4 deletions
CMakeLists.txt
with
20 additions
and
4 deletions
CHANGELOG.md
+
4
−
0
View file @
37ad9a1d
...
...
@@ -6,9 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Added
-
Allow use of installed JRL-cmakemodule (
[
#446
](
https://github.com/stack-of-tasks/eigenpy/pull/446
)
### Fixed
-
Fix unit test build in C++11 (
[
#442
](
https://github.com/stack-of-tasks/eigenpy/pull/442
)
)
-
Fix unit test function signature
[
#443
](
https://github.com/stack-of-tasks/eigenpy/pull/443
)
)
-
Fix CMake export (
[
#446
](
https://github.com/stack-of-tasks/eigenpy/pull/446
)
## [3.4.0] - 2024-02-26
...
...
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
16
−
4
View file @
37ad9a1d
...
...
@@ -14,11 +14,23 @@ set(PROJECT_COMPATIBILITY_VERSION AnyNewerVersion)
# Check if the submodule cmake have been initialized
set
(
JRL_CMAKE_MODULES
"
${
CMAKE_CURRENT_LIST_DIR
}
/cmake"
)
if
(
NOT EXISTS
"
${
CMAKE_SOURCE_DIR
}
/cmake/base.cmake"
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS
"3.14.0"
)
if
(
EXISTS
"
${
JRL_CMAKE_MODULES
}
/base.cmake"
)
message
(
STATUS
"JRL cmakemodules found in 'cmake/' git submodule"
)
else
()
find_package
(
jrl-cmakemodules QUIET CONFIG
)
if
(
jrl-cmakemodules_FOUND
)
get_property
(
JRL_CMAKE_MODULES
TARGET jrl-cmakemodules::jrl-cmakemodules
PROPERTY INTERFACE_INCLUDE_DIRECTORIES
)
message
(
STATUS
"JRL cmakemodules found on system at
${
JRL_CMAKE_MODULES
}
"
)
elseif
(
${
CMAKE_VERSION
}
VERSION_LESS
"3.14.0"
)
message
(
FATAL_ERROR
"
\n
Please run the following command first:
\n
git submodule update --init
\n
"
"
\n
Can't find jrl-cmakemodules. Please either:
\n
"
" - use git submodule: 'git submodule update --init'
\n
"
" - or install https://github.com/jrl-umi3218/jrl-cmakemodules
\n
"
" - or upgrade your CMake version to >= 3.14 to allow automatic fetching
\n
"
)
else
()
message
(
STATUS
"JRL cmakemodules not found. Let's fetch it."
)
...
...
@@ -297,7 +309,7 @@ add_library(${PROJECT_NAME} SHARED ${${PROJECT_NAME}_SOURCES}
target_include_directories
(
${
PROJECT_NAME
}
SYSTEM
PUBLIC $<BUILD_INTERFACE:
${
CMAKE_CURRENT_BINARY_DIR
}
/include>
$<INSTALL_INTERFACE:
include
>
)
$<INSTALL_INTERFACE:
${
CMAKE_INSTALL_INCLUDEDIR
}
>
)
modernize_target_link_libraries
(
${
PROJECT_NAME
}
...
...
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