diff --git a/premake5.lua b/premake5.lua index 83b19bb..d81b803 100644 --- a/premake5.lua +++ b/premake5.lua @@ -72,5 +72,10 @@ workspace "doghook" "{TOUCH} %{wks.location}/compile_commands/%{cfg.shortname}.json", "{COPY} %{wks.location}/compile_commands/%{cfg.shortname}.json ../compile_commands.json" } - filter {} + filter "system:windows" + postbuildcommands { + "cmd.exe /c \"" .. "{MKDIR} %{wks.location}/compile_commands/", + "cmd.exe /c \"" .. "{TOUCH} %{wks.location}/compile_commands/%{cfg.shortname}.json", + "cmd.exe /c \"" .. "{COPY} %{wks.location}/compile_commands/%{cfg.shortname}.json ../compile_commands.json*" + }