vcpkg/ports/libgo/cmake.patch
NancyLi1013 3f7bee619a
[libgo] Update to 3.1 (#11263)
* [libgo] Update to 3.1

* Add headers in debug sub folder

* Update ci.baseline and remove headers in debug/include directory

* Update the way to install headers and targets on Windows

* Remove the headers in netio/disable_hook on all platforms

* Add unsupported for arm and uwp

* Add only support static build and update ci.baseline

* code review

Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-05-18 14:09:10 -07:00

14 lines
482 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index dfa9b72..ff9827e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -152,6 +152,8 @@ if (UNIX)
elseif (WIN32)
set_target_properties("${STATIC_T}" PROPERTIES COMPILE_FLAGS "/wd4819 /wd4267")
+ install(TARGETS ${STATIC_T} LIBRARY DESTINATION "lib" ARCHIVE DESTINATION "lib")
+ install(DIRECTORY ${PROJECT_SOURCE_DIR}/libgo/ DESTINATION "include/libgo" FILES_MATCHING PATTERN "*.h")
endif()
if (WIN32)