diff options
| author | Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> | 2021-04-10 01:39:04 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-09 10:39:04 -0700 |
| commit | fe112d8301e13fde9a25dc92d94a0c4a6dc3cf19 (patch) | |
| tree | 72c1117c6115d36407f52b15541a0b579be7fa62 /ports/soci/export-include-dirs.patch | |
| parent | 9ab06a4def8adeab3121614d498c347ebf254967 (diff) | |
| download | vcpkg-fe112d8301e13fde9a25dc92d94a0c4a6dc3cf19.tar.gz vcpkg-fe112d8301e13fde9a25dc92d94a0c4a6dc3cf19.zip | |
[soci] Re-fix feature mysql (#16369)
* [soci] Re-fix feature mysql
* update version record
* [soci] Fix config file name and add find_dependency
* update baseline record
* [soci] Export INTERFACE_INCLUDE_DIRECTORIES
* update version record
Diffstat (limited to 'ports/soci/export-include-dirs.patch')
| -rw-r--r-- | ports/soci/export-include-dirs.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/ports/soci/export-include-dirs.patch b/ports/soci/export-include-dirs.patch new file mode 100644 index 000000000..907b54e77 --- /dev/null +++ b/ports/soci/export-include-dirs.patch @@ -0,0 +1,53 @@ +diff --git a/cmake/SociBackend.cmake b/cmake/SociBackend.cmake +index 442d81d..ef56422 100644 +--- a/cmake/SociBackend.cmake ++++ b/cmake/SociBackend.cmake +@@ -159,8 +159,13 @@ macro(soci_backend NAME) + ${THIS_BACKEND_HEADERS}) + + target_link_libraries(${THIS_BACKEND_TARGET} ++ PUBLIC + ${SOCI_CORE_TARGET} + ${THIS_BACKEND_DEPENDS_LIBRARIES}) ++ ++ target_include_directories(${THIS_BACKEND_TARGET} ++ PUBLIC ++ ${THIS_BACKEND_DEPENDS_INCLUDE_DIRS}) + + if(WIN32) + set_target_properties(${THIS_BACKEND_TARGET} +@@ -197,8 +202,14 @@ macro(soci_backend NAME) + + # Still need to link the libraries for tests to work + target_link_libraries (${THIS_BACKEND_TARGET_STATIC} ++ PUBLIC + ${THIS_BACKEND_DEPENDS_LIBRARIES} + ) ++ ++ target_include_directories(${THIS_BACKEND_TARGET_STATIC} ++ PUBLIC ++ ${THIS_BACKEND_DEPENDS_INCLUDE_DIRS} ++ ) + + set_target_properties(${THIS_BACKEND_TARGET_STATIC} + PROPERTIES +diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt +index 3916cce..d537613 100644 +--- a/src/core/CMakeLists.txt ++++ b/src/core/CMakeLists.txt +@@ -64,6 +64,7 @@ if (SOCI_SHARED) + target_include_directories(${SOCI_CORE_TARGET} + PUBLIC + $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../include> ++ $<INSTALL_INTERFACE:include> + ) + + endif() +@@ -96,6 +97,7 @@ if (SOCI_STATIC) + target_include_directories(${SOCI_CORE_TARGET_STATIC} + PUBLIC + $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../include> ++ $<INSTALL_INTERFACE:include> + ) + + endif() |
