diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt index 2a9b72f2f5..1e91f8f964 100644 --- a/interface/CMakeLists.txt +++ b/interface/CMakeLists.txt @@ -28,10 +28,10 @@ if (APPLE) set(GL_HEADERS "#include \n#include ") endif (APPLE) -if (UNIX) +if (UNIX AND NOT APPLE) # include the right GL headers for UNIX set(GL_HEADERS "#include \n#include \n#include ") -endif (UNIX) +endif (UNIX AND NOT APPLE) if (WIN32) #set(GLUT_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/external/glut)