Skip to content

Commit

Permalink
Merge pull request #110 from project-tsurugi/build-fix-rh-rpath
Browse files Browse the repository at this point in the history
build: fix RPATH settings to work even if libdir is not "lib"
  • Loading branch information
t-horikawa authored Feb 18, 2025
2 parents ad894d7 + 6964fe2 commit b8182d1
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions bridge/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2019 tsurugi project.
# Copyright 2019-2025 tsurugi project.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -22,7 +22,7 @@ add_library(bridge

set_target_properties(bridge
PROPERTIES
INSTALL_RPATH "\$ORIGIN/../lib"
INSTALL_RPATH "\$ORIGIN"
OUTPUT_NAME "ogawayama-bridge-${SHARKSFIN_IMPLEMENTATION}"
)

Expand Down
4 changes: 2 additions & 2 deletions examples/cli/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2019 tsurugi project.
# Copyright 2019-2025 tsurugi project.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -22,7 +22,7 @@ add_executable(cli

set_target_properties(cli
PROPERTIES
INSTALL_RPATH "\$ORIGIN/../lib"
INSTALL_RPATH "\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}"
RUNTIME_OUTPUT_NAME "ogawayama-cli"
)

Expand Down
4 changes: 2 additions & 2 deletions examples/tpcc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2020 tsurugi project.
# Copyright 2019-2025 tsurugi project.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -22,7 +22,7 @@ add_executable(tpcc

set_target_properties(tpcc
PROPERTIES
INSTALL_RPATH "\$ORIGIN/../lib"
INSTALL_RPATH "\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}"
RUNTIME_OUTPUT_NAME "ogawayama-tpcc"
)

Expand Down
4 changes: 2 additions & 2 deletions examples/tpcc_loader/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2019 tsurugi project.
# Copyright 2019-2025 tsurugi project.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -22,7 +22,7 @@ add_executable(tpcc-loader

set_target_properties(tpcc-loader
PROPERTIES
INSTALL_RPATH "\$ORIGIN/../lib"
INSTALL_RPATH "\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}"
RUNTIME_OUTPUT_NAME "ogawayama-tpcc-loader"
)

Expand Down
4 changes: 2 additions & 2 deletions mock/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2019 tsurugi fin project.
# Copyright 2019-2025 tsurugi fin project.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -27,7 +27,7 @@ target_include_directories(stub-mock

set_target_properties(stub-mock
PROPERTIES
INSTALL_RPATH "\$ORIGIN/../lib"
INSTALL_RPATH "\$ORIGIN"
LIBRARY_OUTPUT_NAME "ogawayama-stub-mock"
)

Expand Down
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2023 tsurugi fin project.
# Copyright 2019-2025 tsurugi fin project.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -80,7 +80,7 @@ add_dependencies(stub

set_target_properties(stub
PROPERTIES
INSTALL_RPATH "\$ORIGIN/../lib"
INSTALL_RPATH "\$ORIGIN"
LIBRARY_OUTPUT_NAME "ogawayama-stub"
)

Expand Down

0 comments on commit b8182d1

Please sign in to comment.