Skip to content

Commit

Permalink
Set bob install dir to CMAKE_LIBDIR
Browse files Browse the repository at this point in the history
- Fixes issues on 64bit systems when LIBDIR=lib64. CMake would relink
  to $ORIGIN:$ORIGIN/../lib64 and all the libs would be in lib.

Signed-off-by: Aiden Woodruff <[email protected]>
  • Loading branch information
bobpaw authored and joshia5 committed Sep 8, 2024
1 parent 6d41911 commit 07a4548
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/bob.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ endmacro(bob_public_dep)
function(bob_export_target tgt_name)
install(TARGETS ${tgt_name} EXPORT ${tgt_name}-target
RUNTIME DESTINATION bin
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib)
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(EXPORT ${tgt_name}-target NAMESPACE ${PROJECT_NAME}::
DESTINATION lib/cmake/${PROJECT_NAME})
set(${PROJECT_NAME}_EXPORTED_TARGETS
Expand Down

0 comments on commit 07a4548

Please sign in to comment.