Merge pull request #197 from juj/no_xcompile_system_includes

No system headers when cross-compiling.
This commit is contained in:
erwincoumans
2014-07-14 09:26:16 -07:00

View File

@@ -214,7 +214,7 @@ IF (USE_GLUT)
ENDIF (GLUT_FOUND)
ENDIF (MSVC)
IF(NOT WIN32 AND NOT APPLE)
IF(NOT WIN32 AND NOT APPLE AND NOT CMAKE_CROSSCOMPILING)
# This is added for linux. This should always work if everything is installed and working fine.
SET(GLUT_INCLUDE_DIR /usr/include /usr/local/include)
ENDIF()