From 2b25d1300333ad47706fbcdcab4665abf6785ff1 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 14 Feb 2019 22:51:31 +0800 Subject: support some deprecated api for cmakelists --- xmake/plugins/project/make/makefile.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'xmake/plugins/project/make/makefile.lua') diff --git a/xmake/plugins/project/make/makefile.lua b/xmake/plugins/project/make/makefile.lua index e5aaaa201..82a49c220 100644 --- a/xmake/plugins/project/make/makefile.lua +++ b/xmake/plugins/project/make/makefile.lua @@ -35,7 +35,6 @@ end -- mkdir directory function _mkdir(makefile, dir) - if is_plat("windows") then makefile:print("\t-@mkdir %s > NUL 2>&1", dir) else @@ -45,8 +44,6 @@ end -- copy file function _cp(makefile, sourcefile, targetfile) - - -- copy file if is_plat("windows") then makefile:print("\t@copy /Y %s %s > NUL 2>&1", sourcefile, targetfile) else @@ -343,7 +340,7 @@ function _make_target(makefile, target, targetflags) -- TODO make header directories (deprecated) local dstheaderdirs = {} - local srcheaders, dstheaders = target:headerfiles() + local srcheaders, dstheaders = target:headers() for _, dstheader in ipairs(dstheaders) do dstheaderdirs[path.directory(dstheader)] = true end -- cgit v1.3.1