[pangolin] Fix glew dependency and fix usage of the crt

This commit is contained in:
Alexander Karatarakis 2017-10-25 18:31:00 -07:00
parent 38522146d7
commit 133099fa2c
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Source: pangolin
Version: 0.5-2
Version: 0.5-3
Build-Depends: eigen3, glew, libpng, libjpeg-turbo, ffmpeg
Description: Lightweight GUI Library

View File

@ -8,6 +8,10 @@ vcpkg_from_github(
HEAD_REF master
)
file(REMOVE ${SOURCE_PATH}/CMakeModules/FindGLEW.cmake)
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" MSVC_USE_STATIC_CRT)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
@ -16,6 +20,7 @@ vcpkg_configure_cmake(
-DBUILD_EXTERN_GLEW=OFF
-DBUILD_EXTERN_LIBPNG=OFF
-DBUILD_EXTERN_LIBJPEG=OFF
-DMSVC_USE_STATIC_CRT=${MSVC_USE_STATIC_CRT}
)
vcpkg_install_cmake()