Skip to content
Snippets Groups Projects
Commit 379a7c39 authored by calrama's avatar calrama
Browse files

[ci] use static boost

parent 61b9b125
No related branches found
No related tags found
No related merge requests found
Pipeline #32504 passed
......@@ -22,7 +22,6 @@ target_link_libraries (${target} robofish-behavior_loader)
find_package(Qt5 REQUIRED COMPONENTS Core Gui Xml Network Widgets Multimedia MultimediaWidgets OpenGL)
target_link_libraries (${target} Qt5::Core Qt5::Gui Qt5::Xml Qt5::Network Qt5::Widgets Qt5::Multimedia Qt5::MultimediaWidgets Qt5::OpenGL)
set(Boost_REALPATH ON)
find_package(Boost REQUIRED COMPONENTS system filesystem program_options)
target_link_libraries(${target} Boost::headers Boost::system Boost::filesystem Boost::program_options)
......@@ -75,8 +74,6 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
deploy_qt5(${target} DESTINATION .)
endif()
locate_boost(shared_libraries COMPONENTS system filesystem program_options)
set(INSTALL_CUDA_COMPONENTS "" CACHE STRING "CUDA components to install")
locate_cuda(shared_libraries COMPONENTS ${INSTALL_CUDA_COMPONENTS})
......@@ -140,8 +137,6 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
install(DIRECTORY "${Pylon5_LIBRARY_DIR}/" DESTINATION "${CMAKE_INSTALL_LIBDIR}")
endif()
install(FILES "${Boost_SYSTEM_LIBRARY_RELEASE}" "${Boost_FILESYSTEM_LIBRARY_RELEASE}" "${Boost_PROGRAM_OPTIONS_LIBRARY_RELEASE}" DESTINATION "${CMAKE_INSTALL_LIBDIR}")
get_target_property(shared_library biotracker-interfaces LOCATION)
install(FILES "${shared_library}" DESTINATION "${CMAKE_INSTALL_LIBDIR}")
......
......@@ -67,6 +67,8 @@ if __name__ == "__main__":
command += define("CMAKE_SKIP_PACKAGE_ALL_DEPENDENCY", "ON")
command += define_env("VCPKG_TARGET_TRIPLET")
command += define("Boost_USE_STATIC_LIBS", "ON")
if system() == "Windows":
command += define("PACKAGE_MSI", "ON")
command += define("INSTALL_SYSTEM_LIBRARIES", "ON")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment