aboutsummaryrefslogtreecommitdiff
path: root/ports/glew
diff options
context:
space:
mode:
authorMartin Müller <muemart@users.noreply.github.com>2017-09-25 14:48:34 +0200
committerMartin Müller <muemart@users.noreply.github.com>2017-09-25 14:48:34 +0200
commit06c028ce9a09f2a0ba509574bfc44371efaa4307 (patch)
treed07c87b5029d089d5dd94adb5b69f98ac5aa4a2f /ports/glew
parentf4229f376205b681be8bdc0c58666c2aebc5d8c7 (diff)
downloadvcpkg-06c028ce9a09f2a0ba509574bfc44371efaa4307.tar.gz
vcpkg-06c028ce9a09f2a0ba509574bfc44371efaa4307.zip
Enable static builds of pangolin
Diffstat (limited to 'ports/glew')
-rw-r--r--ports/glew/portfile.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/glew/portfile.cmake b/ports/glew/portfile.cmake
index 30f55451a..a18a8ceeb 100644
--- a/ports/glew/portfile.cmake
+++ b/ports/glew/portfile.cmake
@@ -36,6 +36,11 @@ file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/visualinfo.exe)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
+ foreach(FILE ${CURRENT_PACKAGES_DIR}/include/GL/glew.h ${CURRENT_PACKAGES_DIR}/include/GL/wglew.h ${CURRENT_PACKAGES_DIR}/include/GL/glxew.h)
+ file(READ ${FILE} _contents)
+ string(REPLACE "#ifdef GLEW_STATIC" "#if 1" _contents "${_contents}")
+ file(WRITE ${FILE} "${_contents}")
+ endforeach()
endif()
vcpkg_copy_pdbs()