CMake: avoid unsafe header path when cross-compiling (#18782)

This commit is contained in:
François Perrad 2018-04-23 03:04:45 +02:00 committed by minggo
parent ed0288f22d
commit 2991a18fae
1 changed files with 3 additions and 0 deletions

View File

@ -102,11 +102,14 @@ elseif(APPLE)
elseif(LINUX) elseif(LINUX)
if(NOT CMAKE_CROSSCOMPILING)
include_directories( include_directories(
/usr/include /usr/include
/usr/include/GLFW /usr/include/GLFW
/usr/local/include/GLFW /usr/local/include/GLFW
) )
endif(NOT CMAKE_CROSSCOMPILING)
set(COCOS_PLATFORM_SPECIFIC_HEADER set(COCOS_PLATFORM_SPECIFIC_HEADER
platform/linux/CCApplication-linux.h platform/linux/CCApplication-linux.h
platform/linux/CCGL-linux.h platform/linux/CCGL-linux.h