summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
authorRedbeanw44602 <[email protected]>2025-01-02 22:51:35 +0800
committerRedbeanw44602 <[email protected]>2025-01-02 22:51:35 +0800
commita52f87bc96872a6bc1007908a71805fd10ea7d85 (patch)
tree2ac4ad3151669ea0df5166c9a8aa24ad65f7cb1c /xmake/modules/package/tools/cmake.lua
parentb16a5777a69bf2cd7899670fbc10d71fb2353ff3 (diff)
fix dummy cmakelist generated wrong default ms_runtime parameters.
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
-rw-r--r--xmake/modules/package/tools/cmake.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index e5c915ee0..dd5a6fd24 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -823,6 +823,9 @@ function _get_default_flags(package, configs, buildtype, opt)
local dummy_cmakelist = path.join(tmpdir, "CMakeLists.txt")
io.writefile(dummy_cmakelist, format([[
+ cmake_minimum_required(VERSION 3.15)
+ project(XMakeDummyProject)
+
message(STATUS "CMAKE_C_FLAGS is ${CMAKE_C_FLAGS}")
message(STATUS "CMAKE_C_FLAGS_%s is ${CMAKE_C_FLAGS_%s}")