We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents be161fe + d075141 commit 237b8e0Copy full SHA for 237b8e0
1 file changed
CMakeLists.txt
@@ -56,7 +56,10 @@ add_library(sqlite_orm INTERFACE)
56
add_library(sqlite_orm::sqlite_orm ALIAS sqlite_orm)
57
58
find_package(SQLite3 REQUIRED)
59
-target_link_libraries(sqlite_orm INTERFACE SQLite::SQLite3)
+if(NOT TARGET SQLite3::SQLite3)
60
+ add_library(SQLite3::SQLite3 ALIAS SQLite::SQLite3)
61
+endif()
62
+target_link_libraries(sqlite_orm INTERFACE SQLite3::SQLite3)
63
64
target_sources(sqlite_orm INTERFACE $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include/sqlite_orm/sqlite_orm.h>)
65
0 commit comments