From 66772470ec6a30bf81063440cddc42c5f81944bf Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Mon, 17 Oct 2016 13:32:55 -0700 Subject: [PATCH] [glbidning] Exit early if trying to build it statically --- ports/glbinding/portfile.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ports/glbinding/portfile.cmake b/ports/glbinding/portfile.cmake index 442717dd0a..5b928445fb 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)