mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 10:28:59 +08:00
c32e7e262d
* [soci] update to 4.0.2 * update version * update portfile.cmake * update version * fix ci error * update version * fix-mysql-feature * update version * Add comment explaining fix-mysql-feature-error.patch Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
diff --git a/cmake/SociBackend.cmake b/cmake/SociBackend.cmake
|
|
index 5d4ef0d..bb0edf2 100644
|
|
--- a/cmake/SociBackend.cmake
|
|
+++ b/cmake/SociBackend.cmake
|
|
@@ -159,8 +159,14 @@ 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,9 +203,15 @@ 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
|
|
OUTPUT_NAME ${THIS_BACKEND_OUTPUT_NAME}
|