summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/genie/src/actions/cmake/cmake_project.lua
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/genie/src/actions/cmake/cmake_project.lua')
-rw-r--r--3rdparty/genie/src/actions/cmake/cmake_project.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/3rdparty/genie/src/actions/cmake/cmake_project.lua b/3rdparty/genie/src/actions/cmake/cmake_project.lua
index dc305930cd8..b98a20c65a8 100644
--- a/3rdparty/genie/src/actions/cmake/cmake_project.lua
+++ b/3rdparty/genie/src/actions/cmake/cmake_project.lua
@@ -42,7 +42,12 @@ function premake.cmake.project(prj)
for _,v in ipairs(cfg.includedirs) do
_p('include_directories(../%s)', premake.esc(v))
end
+ for _,v in ipairs(cfg.defines) do
+ _p('add_definitions(-D%s)', premake.esc(v))
+ end
+ break
end
+ break
end
if (prj.kind=='StaticLib') then