mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 05:29:00 +08:00
[libgo] Fix include directory not exposed by target (#24958)
Co-authored-by: Cheney-Wang <v-xincwa@microsoft.com>
This commit is contained in:
parent
e42e5115f6
commit
8cfe2589b7
13
ports/libgo/Add-target-include-directory.patch
Normal file
13
ports/libgo/Add-target-include-directory.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index e21eee0..017cc7a 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -176,6 +176,8 @@ if (WIN32)
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/wd4819 /wd4267")
|
||||
endif()
|
||||
|
||||
+TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} INTERFACE $<INSTALL_INTERFACE:include>)
|
||||
+
|
||||
install(TARGETS ${PROJECT_NAME}
|
||||
EXPORT "${PROJECT_NAME}Config"
|
||||
LIBRARY DESTINATION lib
|
@ -8,6 +8,7 @@ vcpkg_from_github(
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
cmake.patch
|
||||
Add-target-include-directory.patch
|
||||
)
|
||||
|
||||
vcpkg_from_github(
|
||||
|
@ -1,9 +1,10 @@
|
||||
{
|
||||
"name": "libgo",
|
||||
"version": "3.1",
|
||||
"port-version": 4,
|
||||
"port-version": 5,
|
||||
"description": "The best stackful coroutine by c++11.",
|
||||
"homepage": "https://github.com/yyzybb537/libgo",
|
||||
"license": "MIT",
|
||||
"supports": "!(arm | uwp)",
|
||||
"dependencies": [
|
||||
{
|
||||
|
@ -3606,7 +3606,7 @@
|
||||
},
|
||||
"libgo": {
|
||||
"baseline": "3.1",
|
||||
"port-version": 4
|
||||
"port-version": 5
|
||||
},
|
||||
"libgpg-error": {
|
||||
"baseline": "1.42",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "e7eea4022110bad013d460a23328cd2e82385bb1",
|
||||
"version": "3.1",
|
||||
"port-version": 5
|
||||
},
|
||||
{
|
||||
"git-tree": "b50450a394cd5b4e882d353439c3dae6cc0564f2",
|
||||
"version": "3.1",
|
||||
|
Loading…
Reference in New Issue
Block a user