make math link linux only cos m.lib isnt on windows
This commit is contained in:
parent
b31e7e35e5
commit
a50fb75cc2
14
premake5.lua
14
premake5.lua
|
@ -1,10 +1,10 @@
|
|||
local includes = { "include", "include/gearlib" }
|
||||
|
||||
workspace "gearlib"
|
||||
configurations { "Debug", "Release" }
|
||||
location "build"
|
||||
|
||||
outputdir = "%{cfg.buildcfg}-%{cfg.system}"
|
||||
|
||||
includes = { "include", "include/gearlib" }
|
||||
|
||||
include "vendor/glfw"
|
||||
|
||||
|
@ -15,7 +15,7 @@ project "gearlib"
|
|||
|
||||
files { "include/**.h", "src/**.cpp", "src/**.c" }
|
||||
includedirs(includes)
|
||||
links { "GLFW", "m" }
|
||||
links { "GLFW" }
|
||||
|
||||
filter "configurations:Debug"
|
||||
defines { "DEBUG" }
|
||||
|
@ -25,6 +25,9 @@ project "gearlib"
|
|||
defines { "NDEBUG" }
|
||||
optimize "On"
|
||||
|
||||
filter "system:linux"
|
||||
links { "m" }
|
||||
|
||||
project "test"
|
||||
kind "ConsoleApp"
|
||||
language "C++"
|
||||
|
@ -32,7 +35,7 @@ project "test"
|
|||
|
||||
files { "examples/test.cpp" }
|
||||
includedirs(includes)
|
||||
links { "GLFW", "gearlib", "m" }
|
||||
links { "GLFW", "gearlib" }
|
||||
|
||||
debugdir "examples"
|
||||
|
||||
|
@ -43,3 +46,6 @@ project "test"
|
|||
filter "configurations:Release"
|
||||
defines { "NDEBUG" }
|
||||
optimize "On"
|
||||
|
||||
filter "system:linux"
|
||||
links { "m" }
|
||||
|
|
Loading…
Reference in a new issue