From 80a85af6613de98ce49fb45b78dfd076ce9d5d8d Mon Sep 17 00:00:00 2001 From: Tan Meng Yue Date: Tue, 25 Dec 2018 17:03:58 +1100 Subject: [PATCH] Fix bug in handling OS X build via CMake The OS macros needs to be upper case for the if statement to work as expected --- examples/glview/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/glview/CMakeLists.txt b/examples/glview/CMakeLists.txt index 10851ae..ae353cb 100644 --- a/examples/glview/CMakeLists.txt +++ b/examples/glview/CMakeLists.txt @@ -7,17 +7,17 @@ find_package ( GLEW REQUIRED ) find_package ( GLFW3 REQUIRED ) find_package ( OpenGL REQUIRED ) -if (apple) +if (APPLE) find_library(COCOA_LIBRARY Cocoa) find_library(COREVIDEO_LIBRARY CoreVideo) find_library(IOKIT_LIBRARY IOKit) else () - if (NOT win32) + if (NOT WIN32) # This means it is Unices set ( GLFW3_UNIX_LINK_LIBRARIES X11 Xxf86vm Xrandr Xi Xinerama Xcursor ) find_package (Threads) endif() -endif (apple) +endif (APPLE) set(CMAKE_CXX_STANDARD 11)