aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoratkawa7 <atkawa7@yahoo.com>2017-05-26 15:19:59 -0700
committerGitHub <noreply@github.com>2017-05-26 15:19:59 -0700
commit139ed0bf5f1423db445895b03f383bcde4a903ed (patch)
tree69d18519181777a2e42588ad7537cc1da0acea27
parent9e65a5e24d05d181f7fdeabae85ed2ca12f2e9ab (diff)
downloadvcpkg-139ed0bf5f1423db445895b03f383bcde4a903ed.tar.gz
vcpkg-139ed0bf5f1423db445895b03f383bcde4a903ed.zip
force users to use --head as latest stable fails to build
-rw-r--r--ports/thrift/portfile.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/ports/thrift/portfile.cmake b/ports/thrift/portfile.cmake
index b87d13aa7..48a4fae82 100644
--- a/ports/thrift/portfile.cmake
+++ b/ports/thrift/portfile.cmake
@@ -5,6 +5,12 @@ if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
endif()
+#Note: last stable fails to build. So use --head instead
+
+if(NOT VCPKG_USE_HEAD_VERSION)
+ message(FATAL_ERROR "Package does not specify REF. It must built using --head.")
+ endif()
+
# As per Ben Craig thrift comment see https://issues.apache.org/jira/browse/THRIFT-1834
# Currently, Thrift is designed to be packaged as a static library. As a static library, the consuming program / dll will only pull in the object files that it needs, so the per-binary size increase should be pretty small.
# Thrift isn't a very good candidate to become a dynamic library. No attempts are made to preserve binary compatibility, or to provide a C / COM-like interface to make binary compatibility easy.