Skip to content

Commit

Permalink
[ci,vcpkg-cmake-*] remove host-only nature of vcpkg-cmake-* ports (mi…
Browse files Browse the repository at this point in the history
…crosoft#16774)

* remove host-only nature of vcpkg-cmake-* ports

* versions

* fix fmt on uwp
  • Loading branch information
strega-nil authored Mar 18, 2021
1 parent 20fad53 commit c8f6537
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 20 deletions.
2 changes: 2 additions & 0 deletions ports/fmt/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ vcpkg_from_github(
HEAD_REF master
PATCHES fix-warning4189.patch
)

vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
DISABLE_PARALLEL_CONFIGURE # with MSBuild (on UWP), fmt writes into the source directory
OPTIONS
-DFMT_CMAKE_DIR=share/fmt
-DFMT_TEST=OFF
Expand Down
2 changes: 1 addition & 1 deletion ports/fmt/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fmt",
"version": "7.1.3",
"port-version": 1,
"port-version": 2,
"description": "Formatting library for C++. It can be used as a safe alternative to printf or as a fast alternative to IOStreams.",
"homepage": "https://github.com/fmtlib/fmt",
"dependencies": [
Expand Down
3 changes: 2 additions & 1 deletion ports/vcpkg-cmake-config/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
if(NOT TARGET_TRIPLET STREQUAL _HOST_TRIPLET)
message(FATAL_ERROR "vcpkg-cmake-config is a host-only port; please mark it as a host port in your dependencies.")
# make FATAL_ERROR in CI when issue #16773 fixed
message(WARNING "vcpkg-cmake-config is a host-only port; please mark it as a host port in your dependencies.")
endif()

file(INSTALL
Expand Down
3 changes: 2 additions & 1 deletion ports/vcpkg-cmake-config/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "vcpkg-cmake-config",
"version-date": "2021-02-26"
"version-date": "2021-02-26",
"port-version": 1
}
3 changes: 2 additions & 1 deletion ports/vcpkg-cmake/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
if(NOT TARGET_TRIPLET STREQUAL _HOST_TRIPLET)
message(FATAL_ERROR "vcpkg-cmake is a host-only port; please mark it as a host port in your dependencies.")
# make FATAL_ERROR in CI when issue #16773 fixed
message(WARNING "vcpkg-cmake is a host-only port; please mark it as a host port in your dependencies.")
endif()

file(INSTALL
Expand Down
3 changes: 2 additions & 1 deletion ports/vcpkg-cmake/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "vcpkg-cmake",
"version-date": "2021-02-28"
"version-date": "2021-02-28",
"port-version": 1
}
24 changes: 12 additions & 12 deletions scripts/ci.baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@
# Add new items alphabetically

# script ports
vcpkg-cmake:arm64-windows=fail
vcpkg-cmake:arm-uwp=fail
vcpkg-cmake:x64-uwp=fail
vcpkg-cmake:x64-windows-static=fail
vcpkg-cmake:x64-windows-static-md=fail
vcpkg-cmake:x86-windows=fail
#vcpkg-cmake:arm64-windows=fail
#vcpkg-cmake:arm-uwp=fail
#vcpkg-cmake:x64-uwp=fail
#vcpkg-cmake:x64-windows-static=fail
#vcpkg-cmake:x64-windows-static-md=fail
#vcpkg-cmake:x86-windows=fail

vcpkg-cmake-config:arm64-windows=fail
vcpkg-cmake-config:arm-uwp=fail
vcpkg-cmake-config:x64-uwp=fail
vcpkg-cmake-config:x64-windows-static=fail
vcpkg-cmake-config:x64-windows-static-md=fail
vcpkg-cmake-config:x86-windows=fail
#vcpkg-cmake-config:arm64-windows=fail
#vcpkg-cmake-config:arm-uwp=fail
#vcpkg-cmake-config:x64-uwp=fail
#vcpkg-cmake-config:x64-windows-static=fail
#vcpkg-cmake-config:x64-windows-static-md=fail
#vcpkg-cmake-config:x86-windows=fail

# other ports
# Cross compiling CI machine cannot run gen_test_char to generate apr_escape_test_char.h
Expand Down
6 changes: 3 additions & 3 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1994,7 +1994,7 @@
},
"fmt": {
"baseline": "7.1.3",
"port-version": 1
"port-version": 2
},
"folly": {
"baseline": "2020.10.19.00",
Expand Down Expand Up @@ -6138,11 +6138,11 @@
},
"vcpkg-cmake": {
"baseline": "2021-02-28",
"port-version": 0
"port-version": 1
},
"vcpkg-cmake-config": {
"baseline": "2021-02-26",
"port-version": 0
"port-version": 1
},
"vcpkg-gfortran": {
"baseline": "3",
Expand Down
5 changes: 5 additions & 0 deletions versions/f-/fmt.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "71167ed3f3204ccfa0c7571ea5a89df1b113ed74",
"version": "7.1.3",
"port-version": 2
},
{
"git-tree": "4f8427eb0bd40da1856d4e67bde39a4fda689d72",
"version": "7.1.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/v-/vcpkg-cmake-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "46d60d4dd4297bedecdcd308167ad2492b269183",
"version-date": "2021-02-26",
"port-version": 1
},
{
"git-tree": "d255b3d566a8861dcc99a958240463e678528066",
"version-date": "2021-02-26",
Expand Down
5 changes: 5 additions & 0 deletions versions/v-/vcpkg-cmake.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "4abdcc88bd5ec2c76e320eb2ff4db665ee9913ac",
"version-date": "2021-02-28",
"port-version": 1
},
{
"git-tree": "b627b47898864ee5a880cea03b4dea64b9d81953",
"version-date": "2021-02-28",
Expand Down

0 comments on commit c8f6537

Please sign in to comment.