When I reached the script `FindSQLite3.cmake` under the GitHub repository `Kitware/CMake`, I noticed that it looked different from the one I could see in my environment, which I had with CMake 3.29.6. Fortunately or unfortunately, it had already been fixed since 2024 March but was still waiting for the next release. Now, 3.30.0 was released last week with this fix. Let's upgrade CMake and enjoy the ease of building C++ code with SQLite3.
The fix in the script looks quite simple: using the `pkg_check_modules` command from the `PkgConfig` package. It calls the `pkg-config` tool to get the information compilers require and make it available in variables in CMake scripts. Check what variables you can get with it on the CMake documentation here.
Collection
[
|
...
]