widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #15091
Re: [Merge] lp:~widelands-dev/widelands/GLVND_18_10 into lp:widelands
Thanks for your hard work on this :-)
Have you tried the CMake variable CMAKE_SYSTEM or CMAKE_SYTEM_VERSION? From what i have read something like this should work also, without the need the call to lsb_release:
if (CMAKE_SYSTEM_VERSION MATCHES "Ubuntu 18.10")
[...]
CMAKE_SYSTEM_VERSION should be the same as calling uname -r.
https://cmake.org/cmake/help/v3.0/manual/cmake-variables.7.html#variables-that-describe-the-system
https://cmake.org/cmake/help/v3.0/command/if.html
Compiling this branch now.
--
https://code.launchpad.net/~widelands-dev/widelands/GLVND_18_10/+merge/356771
Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/GLVND_18_10 into lp:widelands.
References