mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 20:59:45 +08:00
e1417916bc
* set include directory correctly * Revert "set include directory correctly" This reverts commitbde9f29021
. * try suggested fix * try changes * apply fix for comms-ublox * fix commsdsl * try moving in port dir * Revert "try moving in port dir" This reverts commit93546df688
. * set port version * fix port version Co-authored-by: Victor Romero <romerosanchezv@gmail.com> * add usage file to comms * add line to usage Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
38 lines
1.3 KiB
CMake
38 lines
1.3 KiB
CMake
vcpkg_fail_port_install(ON_TARGET "uwp")
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO commschamp/commsdsl
|
|
REF v3.6
|
|
SHA512 80fab2e567191a468a079dd9964a651293d8e7996141a973e77d4bdfaa96bfc346156f50ce484be1dc2b3d9e661cccce0e712c70876f7b322bc459f81a328496
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DCOMMSDSL_NO_COMMS_CHAMPION=ON
|
|
-DCOMMSDSL_NO_TESTS=ON
|
|
-DCOMMSDSL_NO_WARN_AS_ERR=ON # remove on next version or on next version of boost
|
|
)
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_tools(
|
|
TOOL_NAMES commsdsl2comms
|
|
SEARCH_DIR ${CURRENT_PACKAGES_DIR}/bin
|
|
AUTO_CLEAN
|
|
)
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/LibCommsdsl/cmake TARGET_PATH share/LibCommsdsl)
|
|
# after fixing the following dirs are empty
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/LibCommsdsl")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/LibCommsdsl")
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
endif()
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|