fix compile issue on rpi (possible caused by latest cmake version)

This commit is contained in:
redpanther
2017-09-02 22:26:22 +02:00
parent 2aa4df92a9
commit aa9248e815
4 changed files with 50 additions and 13 deletions

View File

@@ -21,6 +21,13 @@ target_link_libraries(hyperiond
)
if (ENABLE_DISPMANX)
IF ( "${PLATFORM}" MATCHES rpi)
find_package(BCM REQUIRED)
include_directories(${BCM_INCLUDE_DIRS})
ELSE()
SET(BCM_INCLUDE_DIRS "")
SET(BCM_LIBRARIES "")
ENDIF()
target_link_libraries(hyperiond dispmanx-grabber)
endif ()

View File

@@ -54,7 +54,7 @@ class SysTray;
class HyperionDaemon : public QObject
{
Q_OBJECT
friend SysTray;
public: