From 237da5db182734a27674b774851f002281356fb5 Mon Sep 17 00:00:00 2001 From: c8ef Date: Mon, 29 Apr 2024 11:11:43 +0800 Subject: [PATCH] Update cmake.lua --- xmake/modules/package/tools/cmake.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index 3f7cb235b98..76319bab9a6 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -400,13 +400,13 @@ function _get_configs_for_windows(package, configs, opt) -- shrink PDB file -- ref: https://devblogs.microsoft.com/cppblog/shrink-my-program-database-pdb-file/ if not opt._configs_str:find("CMAKE_EXE_LINKER_FLAGS") then - table.insert(configs, "-DCMAKE_EXE_LINKER_FLAGS=\"/opt:ref /opt:icf /pdbcompress\"") + table.insert(configs, "-DCMAKE_EXE_LINKER_FLAGS=/opt:ref /opt:icf /pdbcompress") end if not opt._configs_str:find("CMAKE_SHARED_LINKER_FLAGS") then - table.insert(configs, "-DCMAKE_SHARED_LINKER_FLAGS=\"/opt:ref /opt:icf /pdbcompress\"") + table.insert(configs, "-DCMAKE_SHARED_LINKER_FLAGS=/opt:ref /opt:icf /pdbcompress") end if not opt._configs_str:find("CMAKE_STATIC_LINKER_FLAGS") then - table.insert(configs, "-DCMAKE_STATIC_LINKER_FLAGS=\"/opt:ref /opt:icf /pdbcompress\"") + table.insert(configs, "-DCMAKE_STATIC_LINKER_FLAGS=/opt:ref /opt:icf /pdbcompress") end _get_configs_for_generic(package, configs, opt)