News:

Congratulations!
 You've won the News Item Lottery! Your prize? Reading this news item! :)

Minor - silence a cmake warning

Started by Nazalassa, October 04, 2026, 05:35:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nazalassa

When compiling with CMake I get this warning:
CMake Warning (dev) in CMakeLists.txt:
  A logical block opening on the line

    /src/simutrans/CMakeLists.txt:380 (if)

  closes on the line

    /src/simutrans/CMakeLists.txt:399 (endif)

  with mis-matching arguments.
This warning is for project developers.  Use -Wno-dev to suppress it.

Patch: http://patches.simutrans-germany.com/download.php?file=fix-cmake-warning.patch

(Note: being new to Cmake, I do not know if it is an elegant solution.)
Making paks since October 2023  |  pak48.bitlit | pak32.box | MLM for pak64 | Empire F7 cars | Pneumatic tubes | More pak64 vehicles and industries

Life is like a multi-tasking OS: you know you'll eventually get back to everything, but you don't know when.