include GLUT and OpenGL dirs as system includes

This commit is contained in:
Stephen Birarda 2014-03-07 12:07:19 -08:00
parent 20dd5d6e8d
commit dbf8021ccd
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ elseif()
)
endif ()
if(GLUT_INCLUDE_DIR AND GLUT_glut_LIBRARY)
if (GLUT_INCLUDE_DIR AND GLUT_glut_LIBRARY)
# Is -lXi and -lXmu required on all platforms that have it?
# If not, we need some way to figure out what platform we are on.
set(GLUT_LIBRARIES ${GLUT_glut_LIBRARY} ${GLUT_Xmu_LIBRARY} ${GLUT_Xi_LIBRARY})

View file

@ -215,7 +215,7 @@ else (APPLE)
find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
include_directories("${GLUT_INCLUDE_DIR}" "${OPENGL_INCLUDE_DIR}")
include_directories(SYSTEM "${GLUT_INCLUDE_DIR}" "${OPENGL_INCLUDE_DIR}")
target_link_libraries(${TARGET_NAME} "${OPENGL_LIBRARY}" "${GLUT_LIBRARIES}")
# link target to external libraries