[freerdp] Patch out installation of system runtime libs

This commit is contained in:
Alexander Karatarakis 2017-03-21 15:27:13 -07:00
parent 51e4a0112a
commit 9a7a18ea03
2 changed files with 24 additions and 2 deletions

View File

@ -0,0 +1,17 @@
diff --git a/CMakeCPack.cmake b/CMakeCPack.cmake
index 6ccfc7d..75479bf 100644
--- a/CMakeCPack.cmake
+++ b/CMakeCPack.cmake
@@ -67,9 +67,9 @@ if(MSVC)
set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP TRUE)
include(InstallRequiredSystemLibraries)
- install(PROGRAMS ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS}
- DESTINATION ${CMAKE_INSTALL_BINDIR}
- COMPONENT libraries)
+ # install(PROGRAMS ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS}
+ # DESTINATION ${CMAKE_INSTALL_BINDIR}
+ # COMPONENT libraries)
endif()
endif()

View File

@ -8,11 +8,16 @@ set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/FreeRDP-${FREERDP_VERSION_ESCAPED}
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/FreeRDP/FreeRDP/archive/${FREERDP_VERSION}.tar.gz"
FILENAME "${FREERDP_VERSION}.tar.gz"
FILENAME "freerdp-${FREERDP_VERSION}.tar.gz"
SHA512 ${FREERDP_HASH}
)
vcpkg_extract_source_archive(${ARCHIVE})
vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
PATCHES ${CMAKE_CURRENT_LIST_DIR}/DontInstallSystemRuntimeLibs.patch
)
if(VCPKG_CRT_LINKAGE STREQUAL static)
set(FREERDP_CRT_LINKAGE -DMSVC_RUNTIME=static)
endif()