ref: eb11c7798df3eba0507ec4a676dc9abc89502132
parent: 2a9e8bd8ccd7159ce18d9393fbb7fc666d042719
author: Clownacy <Clownacy@users.noreply.github.com>
date: Thu Apr 18 16:08:33 EDT 2019
...Do the previous commit only less stupid
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,9 +4,6 @@
cmake_policy(SET CMP0069 NEW)
endif()
-include(CheckIncludeFile)
-CHECK_INCLUDE_FILE(/opt/vc/include/bcm_host.h RASPBERRY_PI)
-
option(STATIC "Produce a statically-linked executable (good for Windows builds, so you don't need to bundle DLL files)" OFF)
option(JAPANESE "Enable the Japanese-language build" OFF)
option(FIX_BUGS "Fix certain bugs (see src/Bug Fixes.txt)" OFF)
@@ -236,6 +233,8 @@
target_compile_definitions(CSE2 PRIVATE FIX_BUGS)
endif()
+include(CheckIncludeFile)
+CHECK_INCLUDE_FILE(/opt/vc/include/bcm_host.h RASPBERRY_PI)
if (RASPBERRY_PI)
target_compile_definitions(CSE2 PRIVATE RASPBERRY_PI)
endif()