mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-18 21:10:05 +00:00
Fix CMakeLists.txt to not unconditionally add include paths to native system headers in /usr/include and /usr/local/include, which contain include files for the host architecture, and not the target architecture that is being compiled for.
This commit is contained in:
parent
433d349369
commit
1054fd1992
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user