shithub: cstory

Download patch

ref: c63646e798ae154994818febfe9b9dc51ce9c928
parent: 49014530e710c41301e56c1e873770ec27a7a4f8
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Apr 10 13:00:42 EDT 2019

Got cmake file working on Arch

cmake why you so bad

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -327,8 +327,12 @@
 
 		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()