Skip to content

Commit

Permalink
Also set lowercase octomap_* variables in CMake config (#369)
Browse files Browse the repository at this point in the history
Relates to #138
  • Loading branch information
wxmerkt authored May 11, 2022
1 parent 59883e4 commit d1662aa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions octomap/octomap-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,15 @@ set(OCTOMAP_LIBRARIES
"@PACKAGE_OCTOMAP_LIB_DIR@/@OCTOMATH_LIBRARY@"
)

# Additionally set the variables using a lower-case project name.
# This fixes discovery for downstream packages that search for lower-case octomap, which has been common in downstream code:
set(octomap_MAJOR_VERSION "${OCTOMAP_MAJOR_VERSION}")
set(octomap_MINOR_VERSION "${OCTOMAP_MINOR_VERSION}")
set(octomap_PATCH_VERSION "${OCTOMAP_PATCH_VERSION}")
set(octomap_VERSION "${OCTOMAP_VERSION}")
set(octomap_INCLUDE_DIRS "${OCTOMAP_INCLUDE_DIRS}")
set(octomap_LIBRARY_DIRS "${OCTOMAP_LIBRARY_DIRS}")
set(octomap_LIBRARIES "${OCTOMAP_LIBRARIES}")


@OCTOMAP_INCLUDE_TARGETS@

0 comments on commit d1662aa

Please sign in to comment.