Do the last commit except less stupid

This commit is contained in:
Clownacy 2019-04-18 20:15:46 +01:00
parent eb11c7798d
commit 5a3e641492

View file

@ -233,9 +233,7 @@ if (FIX_BUGS)
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()