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.
This commit is contained in:
Ian McKellar 2020-11-25 20:25:19 -08:00 committed by Ian McInerney
parent de9d1eb93e
commit 7f6be05d9d
1 changed files with 1 additions and 1 deletions

View File

@ -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 $<TARGET_PROPERTY:glew,PRIVATE_INCLUDE_DIRECTORIES> )
include_directories( SYSTEM $<TARGET_PROPERTY:glew,INCLUDE_DIRECTORIES> )
else()
find_package( GLEW REQUIRED )
check_find_package_result( GLEW_FOUND "GLEW" )