Skip to content

Commit

Permalink
cmake: Fix glop build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Oct 15, 2024
1 parent 1bb9882 commit b83b38a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/docker/glop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions cmake/glop.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b83b38a

Please sign in to comment.