Skip to content

Commit

Permalink
Fix: MRPT_INSTALL_CONFIG_HEADERS controls duplicated file in new ROS2…
Browse files Browse the repository at this point in the history
… .deb packages
  • Loading branch information
jlblancoc committed Aug 19, 2024
1 parent e63f15f commit 00a5e8f
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions cmakemodules/script_install_commands.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@
# More installation commands:
# ----------------------------------------------------------------------------

# MRPTConfig.cmake: backwards-compatible file as it was named in mrpt v1.x
if(WIN32)
set(cfg_ver_destdir "./")
else()
set(cfg_ver_destdir "share/mrpt")
endif()
install(
FILES
"${MRPT_SOURCE_DIR}/parse-files/mrpt-config.cmake"
"${CMAKE_BINARY_DIR}/mrpt-config-version.cmake"
DESTINATION
${cfg_ver_destdir}
)

# Docs, examples and the rest of files:
if(WIN32)
install(DIRECTORY
Expand Down Expand Up @@ -101,4 +87,18 @@ if (MRPT_INSTALL_CONFIG_HEADERS)
DESTINATION
"include/mrpt/"
)

# MRPTConfig.cmake: backwards-compatible file as it was named in mrpt v1.x
if(WIN32)
set(cfg_ver_destdir "./")
else()
set(cfg_ver_destdir "share/mrpt")
endif()
install(
FILES
"${MRPT_SOURCE_DIR}/parse-files/mrpt-config.cmake"
"${CMAKE_BINARY_DIR}/mrpt-config-version.cmake"
DESTINATION
${cfg_ver_destdir}
)
endif()

0 comments on commit 00a5e8f

Please sign in to comment.