Skip to content

Commit b76c5a0

Browse files
committed
Merge pull request ros#26 from j-rivero/fix_install_path
Install cmake modules into arch dependent path
2 parents a3c1596 + c14a1ec commit b76c5a0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
cmake_minimum_required( VERSION 2.8 FATAL_ERROR )
22
project (urdfdom_headers)
33

4+
include(GNUInstallDirs)
5+
46
set (URDF_MAJOR_VERSION 0)
57
set (URDF_MINOR_VERSION 4)
68
set (URDF_PATCH_VERSION 1)
@@ -24,7 +26,7 @@ add_subdirectory(urdf_exception)
2426
if(WIN32 AND NOT CYGWIN)
2527
set(CMAKE_CONFIG_INSTALL_DIR CMake)
2628
else()
27-
set(CMAKE_CONFIG_INSTALL_DIR share/${PROJECT_NAME}/cmake/)
29+
set(CMAKE_CONFIG_INSTALL_DIR ${CMAKE_INSTALL_FULL_LIBDIR}/${PROJECT_NAME}/cmake/)
2830
endif()
2931

3032
set(PACKAGE_NAME ${PROJECT_NAME})

0 commit comments

Comments
 (0)