From 7e6b0274100d7199d927316f526d8780b9723b74 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sat, 7 May 2022 10:52:24 +0100 Subject: [PATCH] CMake: Remove global java include This broke hermetic and cross-compilation builds of libzt. Example error (from buildroot): ERROR: unsafe header/library path used in cross-compilation: '-I/usr/lib/jvm/java-11-openjdk-amd64/include/linux' --- CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bf5e312..0bd5c3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,8 +82,6 @@ endif() # ------------------------------------------------------------------------------ # | INCLUDE DIRECTORIES | # ------------------------------------------------------------------------------ -# Temporary measure to test GitHub workflow on Ubuntu -include_directories(/usr/lib/jvm/java-11-openjdk-amd64/include/linux/) # ZeroTier include_directories(${ZTO_SRC_DIR}) include_directories(${ZTO_SRC_DIR}/include)