Skip to content

Commit

Permalink
improve find string
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Nov 23, 2024
1 parent c1609c2 commit b293043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmake/modules/package/tools/cmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b293043

Please sign in to comment.