summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/package/tools/cmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index fcd35ad68..ca01fe11a 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -473,10 +473,10 @@ function _get_configs_for_windows(package, configs, opt)
end
local pdb_dir = path.unix(path.join(os.curdir(), "pdb"))
- if not opt._configs_str:find("CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY") then
+ if not opt._configs_str:find("CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY", 1, true) then
table.insert(configs, "-DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=" .. pdb_dir)
end
- if not opt._configs_str:find("CMAKE_PDB_OUTPUT_DIRECTORY") then
+ if not opt._configs_str:find("CMAKE_PDB_OUTPUT_DIRECTORY", 1, true) then
table.insert(configs, "-DCMAKE_PDB_OUTPUT_DIRECTORY=" .. pdb_dir)
end