From c63646e798ae154994818febfe9b9dc51ce9c928 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Wed, 10 Apr 2019 17:00:42 +0100 Subject: [PATCH] Got cmake file working on Arch cmake why you so bad --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 16e3eb66..1c929b44 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -327,8 +327,12 @@ else() target_link_libraries(CSE2 -static) else() - find_package(SDL2 REQUIRED) - find_package(freetype REQUIRED) + # SDL2 has no standard way of being used by cmake, so avoid + # that mess entirely and just use pkg-config instead + find_package(PkgConfig REQUIRED) + pkg_check_modules(SDL2 REQUIRED sdl2) + + find_package(Freetype REQUIRED) endif() endif()