Skip to content

Commit

Permalink
config.cmake: take APPEND_PROJECT_NAME_TO_INCLUDEDIR into account
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Valgur <[email protected]>
  • Loading branch information
valgur committed Feb 29, 2024
1 parent df01ca8 commit 9492c5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/urdfdom-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ set(CMAKE_MODULE_PATH_BACKUP_URDFDOM ${CMAKE_MODULE_PATH})
list(APPEND CMAKE_MODULE_PATH "${@PROJECT_NAME@_DIR}")

set(@PKG_NAME@_INCLUDE_DIRS "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
if(@APPEND_PROJECT_NAME_TO_INCLUDEDIR@)
list(APPEND @PKG_NAME@_INCLUDE_DIRS "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@/..")
endif()

foreach(lib @PKG_LIBRARIES@)
set(onelib "${lib}-NOTFOUND")
Expand Down

0 comments on commit 9492c5a

Please sign in to comment.