Skip to content

Commit 9a42a07

Browse files
committed
Install of boost libraries together with dependent binaries.
There is also set RPATH to the libraries in order executables can find them.
1 parent 1e18b03 commit 9a42a07

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,13 @@ set(boost_include_include_dir ${boost-include_SOURCE_DIR})
7474
set(boost_lib_dir ${boost-include_SOURCE_DIR}/stage/lib)
7575
link_directories(${boost_lib_dir})
7676
add_definitions(-DBOOST_SYSTEM_NO_DEPRECATED=1)
77+
install(DIRECTORY "${boost_lib_dir}" DESTINATION "${CMAKE_INSTALL_PREFIX}")
7778

7879
################################################################################
7980

81+
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
82+
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
83+
8084
add_subdirectory(cbmc)
8185
add_subdirectory(benchmarks/LIBRARIES/models)
8286

0 commit comments

Comments
 (0)