From e1288a26497691f9fc36103014af317b5ed03623 Mon Sep 17 00:00:00 2001 From: SJunkies <41368976+SJunkies@users.noreply.github.com> Date: Mon, 25 May 2020 21:46:25 +0200 Subject: [PATCH] fix: OSX add x11 new include path (#802) --- libsrc/grabber/x11/CMakeLists.txt | 4 ++++ src/hyperion-x11/CMakeLists.txt | 4 ++++ src/hyperiond/CMakeLists.txt | 3 +++ 3 files changed, 11 insertions(+) diff --git a/libsrc/grabber/x11/CMakeLists.txt b/libsrc/grabber/x11/CMakeLists.txt index 7228fdab..4d5914e5 100644 --- a/libsrc/grabber/x11/CMakeLists.txt +++ b/libsrc/grabber/x11/CMakeLists.txt @@ -7,6 +7,10 @@ find_package(X11 REQUIRED) include_directories( ${X11_INCLUDES} ) +if(APPLE) + include_directories("/opt/X11/include") +endif(APPLE) + FILE ( GLOB X11_SOURCES "${CURRENT_HEADER_DIR}/X11*.h" "${CURRENT_SOURCE_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.cpp" ) add_library(x11-grabber ${X11_SOURCES} ) diff --git a/src/hyperion-x11/CMakeLists.txt b/src/hyperion-x11/CMakeLists.txt index 56478b6b..b34d226c 100644 --- a/src/hyperion-x11/CMakeLists.txt +++ b/src/hyperion-x11/CMakeLists.txt @@ -10,6 +10,10 @@ include_directories( ${FLATBUFFERS_INCLUDE_DIRS} ) +if(APPLE) + include_directories("/opt/X11/include") +endif(APPLE) + set(Hyperion_X11_HEADERS X11Wrapper.h ) diff --git a/src/hyperiond/CMakeLists.txt b/src/hyperiond/CMakeLists.txt index 8284bfc5..5ec69820 100644 --- a/src/hyperiond/CMakeLists.txt +++ b/src/hyperiond/CMakeLists.txt @@ -77,6 +77,9 @@ if (ENABLE_AMLOGIC) endif () if (ENABLE_X11) + if(APPLE) + include_directories("/opt/X11/include") + endif(APPLE) target_link_libraries(hyperiond x11-grabber) endif ()