diff options
| author | ruki <[email protected]> | 2025-01-03 22:16:00 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-01-03 22:16:00 +0800 |
| commit | 1f36fe6b29144ac66cbb29cc647c770aa16ce74c (patch) | |
| tree | ea7e921c63c322745b3d017576fcffb812e0bde5 | |
| parent | b16a5777a69bf2cd7899670fbc10d71fb2353ff3 (diff) | |
| parent | 093d610516ba2c5e07fc549db5b0dbd9a321f9a0 (diff) | |
Merge pull request #6032 from Redbeanw44602/dev
fix dummy cmakelist generated wrong default ms_runtime parameters.
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index e5c915ee0..501b52502 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -822,7 +822,12 @@ function _get_default_flags(package, configs, buildtype, opt) local tmpdir = path.join(os.tmpfile() .. ".dir", package:displayname(), package:mode()) local dummy_cmakelist = path.join(tmpdir, "CMakeLists.txt") + -- About the minimum cmake version requirement + -- @see https://github.com/xmake-io/xmake/pull/6032 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}") |
