Skip to content

Commit 4fa2177

Browse files
authored
Fix destination in CMakeLists.txt (#389)
Signed-off-by: Gaël Écorchard <[email protected]>
1 parent a5411c9 commit 4fa2177

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ INSTALL( DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/
291291

292292
install(EXPORT ${PROJECT_NAME}Targets
293293
FILE "${PROJECT_NAME}Targets.cmake"
294-
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
294+
DESTINATION "${BEHAVIOR_TREE_LIB_DESTINATION}/cmake/${PROJECT_NAME}"
295295
NAMESPACE BT::
296296
)
297297

@@ -302,7 +302,7 @@ include(CMakePackageConfigHelpers)
302302
configure_package_config_file(
303303
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/Config.cmake.in"
304304
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
305-
INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
305+
INSTALL_DESTINATION "${BEHAVIOR_TREE_LIB_DESTINATION}/cmake/${PROJECT_NAME}"
306306
)
307307

308308
# This requires to declare to project version in the project() macro
@@ -317,7 +317,7 @@ install(
317317
FILES
318318
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
319319
# "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
320-
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
320+
DESTINATION "${BEHAVIOR_TREE_LIB_DESTINATION}/cmake/${PROJECT_NAME}"
321321
)
322322

323323
######################################################

0 commit comments

Comments
 (0)