eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.52k stars 1.42k forks source link

cmake warning conflicts with macos build #12881

Open behrisch opened 1 year ago

behrisch commented 1 year ago

According to the issued cmake warning line 433 the minimum required version should be set before the project name is initialized. If you try that: https://github.com/eclipse/sumo/commit/93fa59b174cf5df07597e4783b06fc243fdcb3ee the macos build fails

behrisch commented 1 year ago

the warning does not occur on MacOS

angelobanse commented 1 year ago

I was wrong, the warning actually appears on macOS:

CMake Warning (dev) at CMakeLists.txt:42 (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.

(i'm using CMake 3.26.1)