summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-03-22 23:38:10 +0800
committerruki <[email protected]>2022-03-22 23:38:10 +0800
commit8ee5d5856296e1439b478d19a7ecdfbcd17a46aa (patch)
tree518dc1f890e3e61264afda7d0870ef0e609eb416
parentfb5f37067336a438f5e8adff01652e07bfee86fa (diff)
improve cmakelist generator
-rw-r--r--xmake/plugins/project/cmake/cmakelists.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua
index 731363bb2..b5cbdef13 100644
--- a/xmake/plugins/project/cmake/cmakelists.lua
+++ b/xmake/plugins/project/cmake/cmakelists.lua
@@ -164,6 +164,7 @@ function _add_target_shared(cmakelists, target)
if target:is_plat("windows") then
-- @see https://github.com/xmake-io/xmake/issues/2192
cmakelists:print("set_target_properties(%s PROPERTIES RUNTIME_OUTPUT_DIRECTORY \"%s\")", target:name(), _get_unix_path_relative_to_cmake(target:targetdir()))
+ cmakelists:print("set_target_properties(%s PROPERTIES ARCHIVE_OUTPUT_DIRECTORY \"%s\")", target:name(), _get_unix_path_relative_to_cmake(target:targetdir()))
else
cmakelists:print("set_target_properties(%s PROPERTIES LIBRARY_OUTPUT_DIRECTORY \"%s\")", target:name(), _get_unix_path_relative_to_cmake(target:targetdir()))
end