From cdcdf5763ae81766a4a969c89aab8e3373dd9565 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 27 Dec 2012 18:04:24 +0100 Subject: [PATCH] Temporary fix for OPENGL_INCLUDE_DIR being NOTFOUND on OS X 10.8. --- examples/CMakeLists.txt | 8 ++++++-- tests/CMakeLists.txt | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index a3c26beb..723244d3 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -9,8 +9,12 @@ else() endif() include_directories(${GLFW_SOURCE_DIR}/include - ${GLFW_SOURCE_DIR}/support - ${OPENGL_INCLUDE_DIR}) + ${GLFW_SOURCE_DIR}/support) + +if (NOT APPLE) + # HACK: This is NOTFOUND on OS X 10.8 + include_directories(${OPENGL_INCLUDE_DIR}) +endif() set(GETOPT ${GLFW_SOURCE_DIR}/support/getopt.h ${GLFW_SOURCE_DIR}/support/getopt.c) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 11bcfe9e..30201265 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -14,8 +14,12 @@ if (UNIX AND NOT APPLE) endif() include_directories(${GLFW_SOURCE_DIR}/include - ${GLFW_SOURCE_DIR}/support - ${OPENGL_INCLUDE_DIR}) + ${GLFW_SOURCE_DIR}/support) + +if (NOT APPLE) + # HACK: This is NOTFOUND on OS X 10.8 + include_directories(${OPENGL_INCLUDE_DIR}) +endif() set(GETOPT ${GLFW_SOURCE_DIR}/support/getopt.h ${GLFW_SOURCE_DIR}/support/getopt.c)