2021-04-10 01:39:04 +08:00
|
|
|
diff --git a/cmake/SociBackend.cmake b/cmake/SociBackend.cmake
|
2021-09-17 01:34:09 +08:00
|
|
|
index 5d4ef0d..bb0edf2 100644
|
2021-04-10 01:39:04 +08:00
|
|
|
--- a/cmake/SociBackend.cmake
|
|
|
|
+++ b/cmake/SociBackend.cmake
|
2021-09-17 01:34:09 +08:00
|
|
|
@@ -159,8 +159,14 @@ macro(soci_backend NAME)
|
2021-04-10 01:39:04 +08:00
|
|
|
${THIS_BACKEND_HEADERS})
|
|
|
|
|
|
|
|
target_link_libraries(${THIS_BACKEND_TARGET}
|
|
|
|
+ PUBLIC
|
|
|
|
${SOCI_CORE_TARGET}
|
|
|
|
${THIS_BACKEND_DEPENDS_LIBRARIES})
|
|
|
|
+
|
|
|
|
+ target_include_directories(${THIS_BACKEND_TARGET}
|
|
|
|
+ PUBLIC
|
2021-09-17 01:34:09 +08:00
|
|
|
+ ${THIS_BACKEND_DEPENDS_INCLUDE_DIRS}
|
|
|
|
+ )
|
2021-04-10 01:39:04 +08:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
set_target_properties(${THIS_BACKEND_TARGET}
|
2021-09-17 01:34:09 +08:00
|
|
|
@@ -197,9 +203,15 @@ macro(soci_backend NAME)
|
2021-04-10 01:39:04 +08:00
|
|
|
|
|
|
|
# Still need to link the libraries for tests to work
|
|
|
|
target_link_libraries (${THIS_BACKEND_TARGET_STATIC}
|
|
|
|
+ PUBLIC
|
|
|
|
${THIS_BACKEND_DEPENDS_LIBRARIES}
|
|
|
|
)
|
2021-09-17 01:34:09 +08:00
|
|
|
-
|
2021-04-10 01:39:04 +08:00
|
|
|
+
|
|
|
|
+ target_include_directories(${THIS_BACKEND_TARGET_STATIC}
|
|
|
|
+ PUBLIC
|
|
|
|
+ ${THIS_BACKEND_DEPENDS_INCLUDE_DIRS}
|
|
|
|
+ )
|
2021-09-17 01:34:09 +08:00
|
|
|
+
|
2021-04-10 01:39:04 +08:00
|
|
|
set_target_properties(${THIS_BACKEND_TARGET_STATIC}
|
|
|
|
PROPERTIES
|
2021-09-17 01:34:09 +08:00
|
|
|
OUTPUT_NAME ${THIS_BACKEND_OUTPUT_NAME}
|