shithub: cstory

Download patch

ref: 5a3e641492a7fe2e9dbd073c412fb8388e85370b
parent: eb11c7798df3eba0507ec4a676dc9abc89502132
author: Clownacy <Clownacy@users.noreply.github.com>
date: Thu Apr 18 16:15:46 EDT 2019

Do the last commit except less stupid

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -233,9 +233,7 @@
 	target_compile_definitions(CSE2 PRIVATE FIX_BUGS)
 endif()
 
-include(CheckIncludeFile)
-CHECK_INCLUDE_FILE(/opt/vc/include/bcm_host.h RASPBERRY_PI)
-if (RASPBERRY_PI)
+if (EXISTS "/opt/vc/include/bcm_host.h")	# Detect Raspberry Pi
 	target_compile_definitions(CSE2 PRIVATE RASPBERRY_PI)
 endif()