Skip to content

Commit 008c5b2

Browse files
authored
Merge pull request #44 from feniksa/master
Fix compilation error in tutorials for linux
2 parents 93d657e + 3105532 commit 008c5b2

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

tutorials/60_mesh_export/premake4.lua

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ project "60_mesh_export"
1212

1313
buildoptions "-std=c++11"
1414

15-
configuration {"x64"}
16-
links {"RadeonProRender64", "RprLoadStore64", "ProRenderGLTF"}
17-
15+
configuration {"x64"}
16+
links {"RadeonProRender64", "RprLoadStore64", "ProRenderGLTF"}
17+
18+
if os.istarget("linux") then
19+
linkoptions "-fopenmp"
20+
end
21+
1822
configuration {"x64", "Debug"}
1923
targetdir "../Bin"
2024
configuration {"x64", "Release"}

tutorials/61_mesh_import/premake4.lua

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ project "61_mesh_import"
1212

1313
buildoptions "-std=c++11"
1414

15-
configuration {"x64"}
16-
links {"RadeonProRender64", "RprLoadStore64", "ProRenderGLTF"}
17-
15+
configuration {"x64"}
16+
links {"RadeonProRender64", "RprLoadStore64", "ProRenderGLTF"}
17+
18+
if os.istarget("linux") then
19+
linkoptions "-fopenmp"
20+
end
21+
1822
configuration {"x64", "Debug"}
1923
targetdir "../Bin"
2024
configuration {"x64", "Release"}

0 commit comments

Comments
 (0)