SQLiteCpp icon indicating copy to clipboard operation
SQLiteCpp copied to clipboard

cmake build warning: `cmake --help-policy CMP0148`

Open dvtate opened this issue 1 year ago • 2 comments

cmake gives the following build warning:

CMake Warning (dev) at third_party/SQLiteCpp/CMakeLists.txt:390 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

dvtate avatar Jul 14 '24 02:07 dvtate

this is due to: CMP0148 I think it could be replaced by FindPython3,

probably something like this should be enough to remove the warning and be backwards compatible:

if(CMAKE_VERSION VERSION_LESS "3.27") 
    #the code that uses findpython3
else()
    #the old code
endif()

I think that python was used in the cmake build for linting or running unit tests

UnixY2K avatar Jul 23 '24 22:07 UnixY2K

#454 fixed this

UnixY2K avatar Sep 15 '24 15:09 UnixY2K