diff options
| author | ruki <[email protected]> | 2022-10-10 22:37:39 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-10-10 22:37:39 +0800 |
| commit | a9e8492bcc68823067d805a7ee666e99c08ad02f (patch) | |
| tree | 9bff8e4f5d3f0a77a4df0eb508584c952a057e89 /tests | |
| parent | 4eab4583144dd0319c33431a557a06905c811ef5 (diff) | |
add package.install_always policy
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/projects/c/library_with_cmakelists/xmake.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/projects/c/library_with_cmakelists/xmake.lua b/tests/projects/c/library_with_cmakelists/xmake.lua index e5646c372..057aea584 100644 --- a/tests/projects/c/library_with_cmakelists/xmake.lua +++ b/tests/projects/c/library_with_cmakelists/xmake.lua @@ -3,6 +3,7 @@ add_rules("mode.debug", "mode.release") package("foo") add_deps("cmake") set_sourcedir(path.join(os.scriptdir(), "foo")) + set_policy("package.install_always", true) on_install(function (package) local configs = {} table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release")) |
