]> de.git.xonotic.org Git - xonotic/netradiant.git/commit
Make it build on M1 Mac 195/head
authorslipher <slipher@protonmail.com>
Fri, 19 Aug 2022 06:23:38 +0000 (01:23 -0500)
committerslipher <slipher@protonmail.com>
Sat, 27 Aug 2022 13:27:41 +0000 (08:27 -0500)
commit4eac8ae24da0db13597b15ee56970b5347e96f4f
treec71c903ca549ed11143fd3f0272ccc31de07a469
parent87c2b8d084931083aad9820c314799c2e8d28924
Make it build on M1 Mac

The CMake changes are to work around the issue that the pkgconfig
module is populating the xxx_LIBRARIES variable with the library
name only (e.g. 'glib-2.0') rather than the full path, which the
linker is unable to find. I guess the correct way to do it is to
use the xxx_LDFLAGS variable from pkgconfig which should tell the
linker where to find the libraries, but it's kind of annoying
because we also have a non-pkgconfig route.

The xxx_LINK_LIBRARIES variable has the full library paths but
it is available only from CMake 3.12 so it can't be used
unconditionally.
README.md
cmake/FindGLIB.cmake
cmake/FindGTK2.cmake
cmake/FindGtkGLExt.cmake
cmake/FindMinizip.cmake
cmake/FindPango.cmake
libs/gtkutil/CMakeLists.txt
radiant/CMakeLists.txt