diff options
| author | ruki <[email protected]> | 2026-03-01 22:38:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-01 22:38:04 +0800 |
| commit | f5a3c883bfea1ac55ed7622ec5578e698e20f32a (patch) | |
| tree | 8054f534be9be4ddf04228363515aac37f3e566d /xmake/modules | |
| parent | 157c2384c55d16cb8d60040a16e748d1213b5ebc (diff) | |
revert importfiles
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/target/action/install/cmake_importfiles.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/modules/target/action/install/cmake_importfiles.lua b/xmake/modules/target/action/install/cmake_importfiles.lua index fa00a1ef8..e3dc31efb 100644 --- a/xmake/modules/target/action/install/cmake_importfiles.lua +++ b/xmake/modules/target/action/install/cmake_importfiles.lua @@ -57,7 +57,7 @@ function _get_builtinvars(target, installdir, libdir) raise("target(%s): libdir(%s) is not in installdir(%s)", target:name(), libdir, installdir) end return {LIBDIR = libsubdir, - TARGET_NAME = target:name(), + TARGETNAME = target:name(), PROJECTNAME = project.name() or target:name(), TARGETFILENAME = target:targetfile() and _get_libfilename(target, libdir), TARGETKIND = target:is_headeronly() and "INTERFACE" or (target:is_shared() and "SHARED" or "STATIC"), @@ -192,4 +192,3 @@ function main(target, opt) end end end - |
