[GNC-dev] recent CMake warnings
Geert Janssens
geert.gnucash at kobaltwit.be
Thu Aug 17 12:24:22 EDT 2023
Hi Frank,
I had a quick look at this.
I don't know what to do with your eclipse warning. That's not part of our CMake
configuration. I suppose you are using something like -G Eclipse-CDT or something when
you call cmake.
For the python warnings I have pushed a small change to use the newer find package
module to detect python when our cmake is 3.12 or more recent.
As our baseline is still 3.10, I have kept some compatibility code for older cmake versions.
If however we choose to support Ubuntu 20.04 LTS as oldest distro, we could set cmake 3.16
as baseline and then the compatibility code could also be dropped. Ubuntu 18.04 LTS has
reached end of standard support in May 2023, so IMO that's something we could consider.
Regards,
Geert
Op dinsdag 15 augustus 2023 13:38:36 CEST schreef Frank H. Ellenberger:
> Hi Geert,
>
> I watched a bunch of new CMake warnings and assume parts of our build
> files and several wiki paages have to get updated:
>
> ninja
> [0/1] Re-running CMake...
> CMake Deprecation Warning:
> Support for "Extra Generators" like
>
> Eclipse CDT4
>
> is deprecated and will be removed from a future version of CMake.
> IDEs may
> use the cmake-file-api(7) to view CMake-generated project build trees.
>
>
> -- Eclipse version is set to 4.26 (). Adjust CMAKE_ECLIPSE_VERSION if
> this is wrong.
> -- Using guile-3.0.x
> -- Using guile SRFI-64
> -- Using guile textual-ports
> CMake Warning (dev) at CMakeLists.txt:500 (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.
>
> This warning is for project developers. Use -Wno-dev to suppress it.
>
> CMake Warning (dev) at CMakeLists.txt:505 (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.
>
> This warning is for project developers. Use -Wno-dev to suppress it.
>
> -- Checking for GTEST
> -- Checking for GMOCK
> -- Configuring done (14.6s)
> -- Generating done (2.1s)
> -- Build files have been written to:
> /home/frank/eclipse-workspace/gnucash-old/maint
>
> cmake --version
> cmake version 3.27.1
>
> Regards
> Frank
More information about the gnucash-devel
mailing list