For portability, this at least does that change only on Linux:
if(CMAKE_SYSTEM_NAME STREQUAL Linux) list(APPEND CMAKE_MODULE_PATH /usr/share/cmake/geographiclib) endif()
This is a potential patch that fixes Ubuntu 22.04.
For portability, this at least does that change only on Linux:
if(CMAKE_ SYSTEM_ NAME STREQUAL Linux) cmake/geographi clib)
list(APPEND CMAKE_MODULE_PATH /usr/share/
endif()
This is a potential patch that fixes Ubuntu 22.04.