Skip to content

Commit a1c01e7

Browse files
committed
build: Ensure that CMAKE_INSTALL_LIBDIR is set
1 parent 11ee0c7 commit a1c01e7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
build
2+
compile_commands.json
13
*~
24
*.pyc
35

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ option(INSTALL_DOCUMENTATION "Generate and install the documentation" OFF)
1515
option(USE_ROS2 "Use ROS2" OFF)
1616

1717
project(force_control_collection LANGUAGES CXX)
18+
include(GNUInstallDirs) # For CMAKE_INSTALL_LIBDIR
1819

1920
# Eigen
2021
find_package(Eigen3 REQUIRED)
@@ -97,4 +98,4 @@ if(USE_ROS2)
9798
)
9899
ament_export_targets(${PROJECT_NAME})
99100
ament_package()
100-
endif()
101+
endif()

0 commit comments

Comments
 (0)