mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 20:08:31 +01:00
added a ternary to check for cl so that we don't have problems with Linux absolute paths...
This commit is contained in:
@@ -13,7 +13,7 @@ local CPRE,CTEST
|
||||
--get implementations
|
||||
local implementations = {}
|
||||
for i=3,#script_args do
|
||||
if script_args[i]:match("^[-/]") then
|
||||
if script_args[i]:match(COMPILER == cl and "^/" or "^%-") then
|
||||
local key, value = script_args[i]:match("^(.+)=(.+)$")
|
||||
if key and value then
|
||||
CFLAGS = CFLAGS .. " " .. key .. "=\"" .. value:gsub("\"", "\\\"") .. "\"";
|
||||
|
Reference in New Issue
Block a user