CMake: print the version of the system library if linking with it

This commit is contained in:
Sébastien Rombauts 2024-08-17 23:31:14 +02:00
parent 26d5e47fe6
commit 553361b5c0

View File

@ -325,7 +325,7 @@ else (SQLITECPP_INTERNAL_SQLITE)
endif()
else()
find_package (SQLite3 REQUIRED)
message(STATUS "Link to sqlite3 system library")
message(STATUS "Link to sqlite3 system library ${SQLite3_VERSION}")
target_link_libraries(SQLiteCpp PUBLIC SQLite::SQLite3)
if(SQLite3_VERSION VERSION_LESS "3.19")
set_target_properties(SQLiteCpp PROPERTIES COMPILE_FLAGS "-DSQLITECPP_HAS_MEM_STRUCT")