File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.07 )
2- project (exampleApplications VERSION 0.4.9 )
2+ project (exampleApplications VERSION 0.5.0 )
33
44
55set (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
5359add_subdirectory (Genetic )
You can’t perform that action at this time.
0 commit comments