Skip to content

Commit dc82b51

Browse files
committed
project version bump to v0.5.0
1 parent 1bb5773 commit dc82b51

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.07)
2-
project(exampleApplications VERSION 0.4.9)
2+
project(exampleApplications VERSION 0.5.0)
33

44

55
set(CMAKE_CXX_STANDARD 20)
@@ -46,8 +46,14 @@ IF(APPLE)
4646
set(CMAKE_INSTALL_RPATH "/usr/local/lib;${CMAKE_PREFIX_PATH}/lib")
4747
set(CMAKE_BUILD_RPATH "${CMAKE_PREFIX_PATH}/lib")
4848
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
49-
50-
endif ()
49+
elseif(UNIX)
50+
# Bake /usr/local/lib into the binary so it finds libmatrixapplication.so
51+
# at runtime regardless of ldconfig state. CMAKE_BUILD_WITH_INSTALL_RPATH
52+
# ensures the build-output binaries in bin/ already carry this RPATH, since
53+
# the deb packages copy from bin/ rather than running cmake --install.
54+
set(CMAKE_INSTALL_RPATH "/usr/lib")
55+
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
56+
endif()
5157

5258

5359
add_subdirectory(Genetic)

0 commit comments

Comments
 (0)