aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-10-17 13:32:55 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2016-10-17 13:32:55 -0700
commit66772470ec6a30bf81063440cddc42c5f81944bf (patch)
treef725940188ba64e0be686a12275e29cb4f186de5
parent53d87f2bac3e95d838ea79adf33514d871473742 (diff)
downloadvcpkg-66772470ec6a30bf81063440cddc42c5f81944bf.tar.gz
vcpkg-66772470ec6a30bf81063440cddc42c5f81944bf.zip
[glbidning] Exit early if trying to build it statically
-rw-r--r--ports/glbinding/portfile.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/glbinding/portfile.cmake b/ports/glbinding/portfile.cmake
index 442717dd0..5b928445f 100644
--- a/ports/glbinding/portfile.cmake
+++ b/ports/glbinding/portfile.cmake
@@ -8,6 +8,10 @@
include(${CMAKE_TRIPLET_FILE})
include(vcpkg_common_functions)
+if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
+ message(FATAL_ERROR "Portfile not yet modified for building glbinding statically")
+endif()
+
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/cginternals/glbinding/archive/v2.1.1.zip"
FILENAME "glbinding-2.1.1.zip"
@@ -25,6 +29,7 @@ vcpkg_configure_cmake(
vcpkg_build_cmake()
vcpkg_install_cmake()
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share)
file(RENAME ${CURRENT_PACKAGES_DIR}/cmake/glbinding ${CURRENT_PACKAGES_DIR}/share/glbinding)