aboutsummaryrefslogtreecommitdiff
path: root/lang/swift510/files/patch-swiftpm_Sources_SPMSQLite3_CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'lang/swift510/files/patch-swiftpm_Sources_SPMSQLite3_CMakeLists.txt')
-rw-r--r--lang/swift510/files/patch-swiftpm_Sources_SPMSQLite3_CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/lang/swift510/files/patch-swiftpm_Sources_SPMSQLite3_CMakeLists.txt b/lang/swift510/files/patch-swiftpm_Sources_SPMSQLite3_CMakeLists.txt
new file mode 100644
index 000000000000..9f8ebc30be3a
--- /dev/null
+++ b/lang/swift510/files/patch-swiftpm_Sources_SPMSQLite3_CMakeLists.txt
@@ -0,0 +1,10 @@
+--- swiftpm/Sources/SPMSQLite3/CMakeLists.txt.orig 2024-06-05 06:47:24 UTC
++++ swiftpm/Sources/SPMSQLite3/CMakeLists.txt
+@@ -11,3 +11,7 @@ target_link_libraries(SPMSQLite3 INTERFACE
+ ${CMAKE_CURRENT_SOURCE_DIR})
+ target_link_libraries(SPMSQLite3 INTERFACE
+ SQLite::SQLite3)
++
++get_target_property(sqlite3_lib_full_path SQLite::SQLite3 IMPORTED_LOCATION)
++get_filename_component(sqlite3_lib_dir "${sqlite3_lib_full_path}" DIRECTORY)
++target_link_directories(SPMSQLite3 INTERFACE "${sqlite3_lib_dir}")