From f9c22b61af2d4eb83ce6f08e3902d4c9386f1aed Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Fri, 13 Dec 2013 08:40:05 -0800 Subject: [PATCH] fix Mac OSX build --- Demos3/SimpleOpenGL3/premake4.lua | 3 +++ btgui/OpenGLWindow/premake4.lua | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Demos3/SimpleOpenGL3/premake4.lua b/Demos3/SimpleOpenGL3/premake4.lua index a413f1c93..bb5b27f56 100644 --- a/Demos3/SimpleOpenGL3/premake4.lua +++ b/Demos3/SimpleOpenGL3/premake4.lua @@ -27,3 +27,6 @@ } +if os.is("MacOSX") then + links{"Cocoa.framework"} +end diff --git a/btgui/OpenGLWindow/premake4.lua b/btgui/OpenGLWindow/premake4.lua index 59c17fdf0..be45bbe0d 100644 --- a/btgui/OpenGLWindow/premake4.lua +++ b/btgui/OpenGLWindow/premake4.lua @@ -20,7 +20,6 @@ files { "**.cpp", "**.h", - "**.c" } if not os.is("Windows") then @@ -38,9 +37,7 @@ } end if os.is("MacOSX") then - links{"Cocoa.framework"} - else - excludes + files { "../OpenGLWindow/MacOpenGLWindow.h", "../OpenGLWindow/MacOpenGLWindow.mm",