workaround of premake for link error on Ubuntu/Linux, see
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-319/+bug/1248642
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
"../GpuDemos/gwenUserInterface.h"
|
||||
}
|
||||
|
||||
if os.is("Linux") then links{"X11"} end
|
||||
if os.is("Linux") then links{"X11","pthread"} end
|
||||
if os.is("MacOSX") then
|
||||
links{"Cocoa.framework"}
|
||||
end
|
||||
|
||||
@@ -91,7 +91,7 @@ function createProject(vendor)
|
||||
}
|
||||
end
|
||||
if os.is("Linux") then
|
||||
links{"X11"}
|
||||
links{"X11","pthread"}
|
||||
files {
|
||||
"../../btgui/OpenGLWindow/X11OpenGLWindow.cpp",
|
||||
"../../btgui/OpenGLWindow/X11OpenGLWindows.h"
|
||||
|
||||
@@ -68,7 +68,7 @@ function createProject(vendor)
|
||||
}
|
||||
end
|
||||
if os.is("Linux") then
|
||||
links {"X11"}
|
||||
links {"X11","pthread"}
|
||||
files {
|
||||
"../../btgui/OpenGLWindow/X11OpenGLWindow.cpp",
|
||||
"../../btgui/OpenGLWindow/X11OpenGLWindows.h"
|
||||
|
||||
@@ -61,6 +61,7 @@ if os.is("Windows") then
|
||||
"../../btgui/OpenGLWindow/X11OpenGLWindow.h",
|
||||
"../../btgui/OpenGLWindow/X11OpenGLWindow.cpp"
|
||||
}
|
||||
links{"pthread"}
|
||||
end
|
||||
if os.is("MacOSX") then
|
||||
links{"Cocoa.framework"}
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
}
|
||||
|
||||
if os.is("Linux") then links {"X11"} end
|
||||
if os.is("Linux") then links {"X11","pthread"} end
|
||||
|
||||
if os.is("MacOSX") then
|
||||
links{"Cocoa.framework"}
|
||||
|
||||
Reference in New Issue
Block a user