From 7f6be05d9def3633c45764f680364b8bdd545728 Mon Sep 17 00:00:00 2001 From: Ian McKellar Date: Wed, 25 Nov 2020 20:25:19 -0800 Subject: [PATCH] Correct GLEW bundled include directory There is no CMake target property PRIVATE_INCLUDE_DIRECTORIES, just INCLUDE_DIRECTORIES (PRIVATE and PUBLIC directories) and INTERFACE_INCLUDE_DIRECTORIES (PUBLIC and INTERFACE directories). Building on Linux with -DKICAD_USE_EGL=ON but without a system-wide GLEW fails without this change. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ec1843d71c..db6216b282 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -632,7 +632,7 @@ if( KICAD_USE_EGL AND KICAD_USE_BUNDLED_GLEW AND UNIX AND NOT APPLE ) # Set the standard package variables to point to our custom target to mimic the system version. set( GLEW_LIBRARIES glew ) set( GLEW_FOUND TRUE ) - include_directories( SYSTEM $ ) + include_directories( SYSTEM $ ) else() find_package( GLEW REQUIRED ) check_find_package_result( GLEW_FOUND "GLEW" )