Skip to content

Commit 27a54a8

Browse files
authored
Merge pull request #158 from beasterio/build_fix
--shared_calc build fix
2 parents 1c4e32b + 5a527a7 commit 27a54a8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

RadeonRays/RadeonRays.lua

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@ project "RadeonRays"
1111

1212
if _OPTIONS["shared_calc"] then
1313
defines {"CALC_IMPORT_API"};
14-
links {"dl"}
14+
if os.is("windows") then
15+
characterset ("MBCS")
16+
else
17+
links {"dl"}
18+
end
1519
else
16-
defines {"CALC_STATIC_LIBRARY"}
20+
defines {"CALC_STATIC_LIBRARY"}
1721
links {"Calc"}
18-
if _OPTIONS["use_opencl"] then
22+
if _OPTIONS["use_opencl"] then
1923
links {"CLW"}
20-
end
24+
end
2125
end
2226

2327
if _OPTIONS["enable_raymask"] then

0 commit comments

Comments
 (0)