diff options
Diffstat (limited to 'tests/projects')
| -rw-r--r-- | tests/projects/c/library_with_cmakelists/xmake.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/projects/c/library_with_cmakelists/xmake.lua b/tests/projects/c/library_with_cmakelists/xmake.lua index 4bf632e08..e27fcbafa 100644 --- a/tests/projects/c/library_with_cmakelists/xmake.lua +++ b/tests/projects/c/library_with_cmakelists/xmake.lua @@ -1,8 +1,12 @@ add_rules("mode.debug", "mode.release") +local cachedir = path.join(os.scriptdir(), "build", "cache") +local packagesdir = path.join(os.scriptdir(), "build", "packages") package("foo") add_deps("cmake") set_sourcedir("foo") + set_cachedir(cachedir) + set_installdir(packagesdir) on_install(function (package) local configs = {} table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release")) |
