Правка посика SQLite3
This commit is contained in:
parent
587cf90790
commit
115be2de15
@ -1,8 +1,3 @@
|
||||
if(${CMAKE_VERSION} VERSION_GREATER "3.13.99")
|
||||
return()
|
||||
endif()
|
||||
|
||||
# Compatibility mode
|
||||
set(SQLite3_PREFIX "" CACHE PATH "The path to the prefix of SQLite3 installation")
|
||||
|
||||
find_path(SQLite3_INCLUDE_DIR NAMES sqlite3.h
|
||||
@ -22,14 +17,13 @@ find_library(SQLite3_LIBRARIES NAMES sqlite3
|
||||
)
|
||||
|
||||
if(SQLite3_INCLUDE_DIR AND SQLite3_LIBRARIES AND NOT TARGET SQLite::SQlite3)
|
||||
get_filename_component(SQlite3_LIBRARY_DIR ${SQLite3_LIBRARIES} PATH)
|
||||
get_filename_component(SQLite3_LIBRARY_DIR ${SQLite3_LIBRARIES} PATH)
|
||||
set(SQLite3_FOUND TRUE)
|
||||
set(SQLite3_INCLUDE_DIRS ${SQLite3_INCLUDE_DIR})
|
||||
add_library(SQLite::SQLite3 UNKNOWN IMPORTED)
|
||||
add_library(SQLite::SQLite3 INTERFACE IMPORTED)
|
||||
set_target_properties(SQLite::SQLite3 PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${SQLite3_INCLUDE_DIR}"
|
||||
INTERFACE_LINK_LIBRARIES "${SQLite3_LIBRARIES}"
|
||||
IMPORTED_LOCATION "${SQLite3_LIBRARY}"
|
||||
)
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user