premake / premake-core

Premake
https://premake.github.io/
BSD 3-Clause "New" or "Revised" License
3.22k stars 620 forks source link

Unable to generate solution for Xcode #298

Closed ikryukov closed 9 years ago

ikryukov commented 9 years ago

Hi, I downloaded the latest source (premake5) and build it on Mac. But now I'm getting this error message: premake-core/modules/xcode/xcode_common.lua:317: bad argument #1 to 'pairs' (table expected, got nil) Could anyone provide premake5 that works on MacOS 10.10. Thanks, Ilya.

Here is my premake lua file:

-- fluid.lua workspace "Fluid" configurations { "Debug", "Release" } location "build/Fluid" architecture "x86_64"

project "Fluid" kind "ConsoleApp" language "C++" targetdir "../bin/%{cfg.buildcfg}"

files { "../src/*.h", "../src/.cpp" }

includedirs { "../3rdparty/GLFW/include" , "../3rdparty/GLEW/include" , "../3rdparty/glm/include" , "../3rdparty/boost/include" }

libdirs { "../3rdparty/GLFW/lib" , "../3rdparty/GLEW/lib" , "../3rdparty/boost/lib" }

links { "glfw3", "glew32", "glu32", "opengl32" }

filter "configurations:Debug" defines { "DEBUG" } flags { "Symbols" }

filter "configurations:Release" defines { "NDEBUG" } optimize "On"

samsinsane commented 9 years ago

As referenced in premake/premake-xcode#20 this was fixed in the module, but the submodule reference hasn't been updated. Creating a PR for this now.