diff --git a/CMakeLists.txt b/CMakeLists.txt index a06370c42..dde17704c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,8 +35,12 @@ if(ARM OR SIMULATOR) set(USING_EGL ON) endif() -include(CheckIncludeFile) -check_include_file(/opt/vc/include/bcm_host.h RPI) +#include(CheckIncludeFile) +#check_include_file(/opt/vc/include/bcm_host.h RPI) +if(EXISTS "/opt/vc/include/bcm_host.h") + message(STATUS "RaspberryPI VC Found") + set(RPI ON) +endif() if(BB) set(ARMV7 ON)