Skip to content

Commit

Permalink
Merge pull request #26 from j-rivero/fix_install_path
Browse files Browse the repository at this point in the history
Install cmake modules into arch dependent path
  • Loading branch information
jacquelinekay committed Apr 12, 2016
2 parents a3c1596 + c14a1ec commit b76c5a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
cmake_minimum_required( VERSION 2.8 FATAL_ERROR )
project (urdfdom_headers)

include(GNUInstallDirs)

set (URDF_MAJOR_VERSION 0)
set (URDF_MINOR_VERSION 4)
set (URDF_PATCH_VERSION 1)
Expand All @@ -24,7 +26,7 @@ add_subdirectory(urdf_exception)
if(WIN32 AND NOT CYGWIN)
set(CMAKE_CONFIG_INSTALL_DIR CMake)
else()
set(CMAKE_CONFIG_INSTALL_DIR share/${PROJECT_NAME}/cmake/)
set(CMAKE_CONFIG_INSTALL_DIR ${CMAKE_INSTALL_FULL_LIBDIR}/${PROJECT_NAME}/cmake/)
endif()

set(PACKAGE_NAME ${PROJECT_NAME})
Expand Down

0 comments on commit b76c5a0

Please sign in to comment.