summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-05-27 21:27:15 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-05-30 17:38:47 -0700
commit61f82876a9f81a1e13b0eb0680e213f4416ce744 (patch)
tree9b5f36f7e445a8709a8d07b5d26b67c7aac64cb1
parentc26a66bfbe3b894be53e2183e4382bac654846f1 (diff)
cmake: Require some frameworks on Darwin
Require the OpenGL, Cocoa, and CoreFoundation frameworks. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d8bf545..af2891f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -117,6 +117,12 @@ function(waffle_find_library var name)
endif()
endfunction()
+if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
+ find_package(OpenGL REQUIRED)
+ find_library(COCOA_FRAMEWORK Cocoa REQUIRED)
+ find_library(CORE_FOUNDATION_FRAMEWORK CoreFoundation REQUIRED)
+endif()
+
if(waffle_has_egl)
waffle_find_library(waffle_EGL_library EGL)
endif()