From 4746ef4e42083a5b7bd9e0f6e873f4673e27de65 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sat, 21 Sep 2019 09:59:00 +0200 Subject: [PATCH] Force include headers on CMake linux --- ci/script.sh | 2 -- native/liblinuxbridge/CMakeLists.txt | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ci/script.sh b/ci/script.sh index a4088e3..293504d 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -4,8 +4,6 @@ set -ex # TODO This is the "test phase", tweak it as you see fit main() { - ls -lR /usr/include - cross build --target $TARGET cross build --target $TARGET --release diff --git a/native/liblinuxbridge/CMakeLists.txt b/native/liblinuxbridge/CMakeLists.txt index 5d263e4..4f44763 100644 --- a/native/liblinuxbridge/CMakeLists.txt +++ b/native/liblinuxbridge/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.0) project(liblinuxbridge) set (CMAKE_CXX_STANDARD 14) -set (CMAKE_SHARED_LINKER_FLAGS "-lX11 -lXtst") +set(CMAKE_REQUIRED_INCLUDES "/usr/local/include" "/usr/include") add_library(linuxbridge STATIC bridge.cpp bridge.h)