From b83b38ab3600b549e42c482b2f47e2bcf3ebf34a Mon Sep 17 00:00:00 2001 From: Mizux Seiha Date: Tue, 15 Oct 2024 12:06:00 +0200 Subject: [PATCH] cmake: Fix glop build --- cmake/docker/glop/Dockerfile | 2 +- cmake/glop.cmake | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/docker/glop/Dockerfile b/cmake/docker/glop/Dockerfile index bbd1e2d31d..dfe8efb53b 100644 --- a/cmake/docker/glop/Dockerfile +++ b/cmake/docker/glop/Dockerfile @@ -22,7 +22,7 @@ COPY . . FROM devel AS build RUN cmake -S. -Bbuild -DBUILD_DEPS=ON -DBUILD_CXX=OFF -DBUILD_GLOP=ON -RUN cmake --build build --target all -v +RUN cmake --build build --target all -j 4 -v RUN cmake --build build --target install FROM build AS test diff --git a/cmake/glop.cmake b/cmake/glop.cmake index 3be3a62544..dc2ca034f8 100644 --- a/cmake/glop.cmake +++ b/cmake/glop.cmake @@ -228,6 +228,9 @@ target_compile_options(glop PUBLIC ${GLOP_COMPILE_OPTIONS}) # Properties if(NOT APPLE) set_target_properties(glop PROPERTIES VERSION ${PROJECT_VERSION}) + if(UNIX) + set_target_properties(glop PROPERTIES INSTALL_RPATH "$ORIGIN") + endif() else() # Clang don't support version x.y.z with z > 255 set_target_properties(glop PROPERTIES