cellml / libcellml

Repository for libCellML development.
https://libcellml.org
Apache License 2.0
17 stars 21 forks source link

CMake: address warning when running the `UNDEFINED_SYMBOLS_ALLOWED` test #1137

Closed agarny closed 1 year ago

agarny commented 1 year ago

With CMake 3.26.0, we now have a warning when running the UNDEFINED_SYMBOLS_ALLOWED test:

...
-- Performing Test UNDEFINED_SYMBOLS_ALLOWED - ...
CMake Warning (dev) at /Users/Alan/libCellML/build/CMakeTmp/UNDEFINED_SYMBOLS_ALLOWED/CMakeLists.txt:2 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Performing Test UNDEFINED_SYMBOLS_ALLOWED - Failed
...