mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 08:13:02 +08:00
21 lines
951 B
CMake
21 lines
951 B
CMake
# Explicitly disable cross-compilation until the upstream discussion
|
|
# https://github.com/ignitionrobotics/ign-msgs/issues/34 is solved
|
|
vcpkg_fail_port_install(ON_ARCH "arm" ON_TARGET "uwp")
|
|
|
|
include(${CURRENT_INSTALLED_DIR}/share/ignitionmodularscripts/ignition_modular_library.cmake)
|
|
|
|
# This port needs to generate protobuf messages with a custom plugin generator,
|
|
# so it needs to have in Windows the relative protobuf dll available in the PATH
|
|
set(path_backup $ENV{PATH})
|
|
vcpkg_add_to_path(${CURRENT_INSTALLED_DIR}/bin)
|
|
vcpkg_add_to_path(${CURRENT_INSTALLED_DIR}/debug/bin)
|
|
|
|
ignition_modular_library(NAME msgs
|
|
VERSION "5.3.0"
|
|
SHA512 55c167d00b60ae6da0144a9495e9ac8aed61fcbdc61e057e75d31261e335c573543d60e28a7dc195a7c9849c5c6eb0e088d4f4e79fd927e83470a3f1fabef60e
|
|
PATCHES
|
|
"01-protobuf.patch")
|
|
|
|
# Restore old path
|
|
set(ENV{PATH} "${path_backup}")
|