diff options
| -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}") |
