mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 11:11:39 +08:00
8ccb84df72
* [scripts] update Boost ports generation script, fixes #35187 * [boost] remove obsolete patches and re-generate ports * update versions * [boost] remove redundant vcpkg_minimum_required * update versions * [scripts/boost] update dependencies to config/checks, review b2-options.cmake files * [boost-*] regenerate ports * [boost-locale] fix patch * update versions * [boost-serialization] fix checks * update version * [boost-*] better fixes related to the config checks * update version * [boost-cobalt] fix build * update versions * [liblas] Boost v1.84.0 requires C++11 * [pcl] fix Unix build * add versions * [vcpkg-cmake-get-vars] add CMAKE_<LANG>_COMPILER_VERSION * [boost-cobalt] detect compiler * [coin] force C++11 * [json5-parser] force C++11 * add versions * [boost-cobalt] exclude iOS and Android platforms due to C++ Concepts library is not supported * [gtsam] force C++11 * [kenlm] force C++11 * [quickfast] force C++11 * [liblas] force C++11 * update versions * [boost] re-generate port * update version * [kenlm] revert changes * [boost-cobalt] exclude OSX * update versions * [plc] remove useless patch after merge * update versions after merge --------- Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
63 lines
2.0 KiB
CMake
63 lines
2.0 KiB
CMake
if(NOT VCPKG_HOST_IS_WINDOWS)
|
|
message(WARNING "${PORT} currently requires the following programs from the system package manager:
|
|
libgl libglu
|
|
On Debian and Ubuntu derivatives:
|
|
sudo apt-get install libgl-dev libglu1-mesa-dev
|
|
On CentOS and recent Red Hat derivatives:
|
|
yum install mesa-libGL-devel mesa-libGLU-devel
|
|
On Fedora derivatives:
|
|
sudo dnf install mesa-libGL-devel mesa-libGLU-devel
|
|
On Arch Linux and derivatives:
|
|
sudo pacman -S gl glu
|
|
On Alpine:
|
|
apk add gl glu\n")
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO Coin3D/coin
|
|
REF "v${VERSION}"
|
|
SHA512 f913f1b1ec5819d72e054dc94702effe9ee2a28547fc9bebc2f6b2e55d8a67c6cfa05e43239461e806cbead0a7548f82b31d5b86181eed4ffc5c801d3b94aa67
|
|
HEAD_REF master
|
|
PATCHES
|
|
remove-default-config.patch
|
|
)
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
set(COIN_BUILD_SHARED_LIBS OFF)
|
|
else()
|
|
set(COIN_BUILD_SHARED_LIBS ON)
|
|
endif()
|
|
|
|
if(VCPKG_CRT_LINKAGE STREQUAL dynamic)
|
|
set(COIN_BUILD_MSVC_STATIC_RUNTIME OFF)
|
|
elseif(VCPKG_CRT_LINKAGE STREQUAL static)
|
|
set(COIN_BUILD_MSVC_STATIC_RUNTIME ON)
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DCMAKE_CXX_STANDARD=11 # Boost v1.84.0 libraries require C++11
|
|
-DCOIN_BUILD_DOCUMENTATION=OFF
|
|
-DCOIN_BUILD_MSVC_STATIC_RUNTIME=${COIN_BUILD_MSVC_STATIC_RUNTIME}
|
|
-DCOIN_BUILD_SHARED_LIBS=${COIN_BUILD_SHARED_LIBS}
|
|
-DCOIN_BUILD_TESTS=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Coin-${VERSION})
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
endif()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/Coin/profiler")
|
|
|
|
vcpkg_fixup_pkgconfig()
|