diff options
| author | RichardYCJ <[email protected]> | 2023-03-11 11:09:42 +0800 |
|---|---|---|
| committer | RichardYCJ <[email protected]> | 2023-03-11 11:09:42 +0800 |
| commit | b0eb2717ec85014f1498bb0ffbf6cd1c7cb26ba6 (patch) | |
| tree | f943130a0a032a772d2931fa4d4eabe35560fc9a | |
| parent | 93414e26be225cab3dba7cec13190ce8be04eb14 (diff) | |
fix cmake::find_package, remove auto debug detection
| -rw-r--r-- | xmake/modules/package/manager/cmake/find_package.lua | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/xmake/modules/package/manager/cmake/find_package.lua b/xmake/modules/package/manager/cmake/find_package.lua index f97118128..9548f9d76 100644 --- a/xmake/modules/package/manager/cmake/find_package.lua +++ b/xmake/modules/package/manager/cmake/find_package.lua @@ -107,10 +107,6 @@ function _find_package(cmake, name, opt) -- run cmake local envs = configs.envs or opt.envs - -- decide whether to enable debug build type - if (not envs.CMAKE_BUILD_TYPE and opt.mode == "debug") then - envs.CMAKE_BUILD_TYPE = "Debug" - end try {function() return os.vrunv(cmake.program, {workdir}, {curdir = workdir, envs = envs}) end} -- pares defines and includedirs for macosx/linux |
