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.
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 /cmake. org/cmake/ help/v3. 0/command/ if.html
https:/
Compiling this branch now.