[libgo] Fix include directory not exposed by target (#24958)

Co-authored-by: Cheney-Wang <v-xincwa@microsoft.com>
This commit is contained in:
Cheney Wang 2022-05-28 04:25:59 +08:00 committed by GitHub
parent e42e5115f6
commit 8cfe2589b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 2 deletions

View 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

View File

@ -8,6 +8,7 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
cmake.patch
Add-target-include-directory.patch
)
vcpkg_from_github(

View File

@ -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": [
{

View File

@ -3606,7 +3606,7 @@
},
"libgo": {
"baseline": "3.1",
"port-version": 4
"port-version": 5
},
"libgpg-error": {
"baseline": "1.42",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e7eea4022110bad013d460a23328cd2e82385bb1",
"version": "3.1",
"port-version": 5
},
{
"git-tree": "b50450a394cd5b4e882d353439c3dae6cc0564f2",
"version": "3.1",