diff options
| author | Redbeanw44602 <[email protected]> | 2025-01-02 22:51:35 +0800 |
|---|---|---|
| committer | Redbeanw44602 <[email protected]> | 2025-01-02 22:51:35 +0800 |
| commit | a52f87bc96872a6bc1007908a71805fd10ea7d85 (patch) | |
| tree | 2ac4ad3151669ea0df5166c9a8aa24ad65f7cb1c | |
| parent | b16a5777a69bf2cd7899670fbc10d71fb2353ff3 (diff) | |
fix dummy cmakelist generated wrong default ms_runtime parameters.
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 3 |
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}") |
