diff options
| author | star9029 <[email protected]> | 2024-11-23 22:41:48 +0800 |
|---|---|---|
| committer | star9029 <[email protected]> | 2024-11-23 22:41:48 +0800 |
| commit | b2930435d1cda1d4ae3115fdd5ce354828eadc21 (patch) | |
| tree | 7614cf9e86a80cff3501ee9a9c45976b2dd70511 | |
| parent | c1609c2408a55df1c2161dc2c9d90393b6f5d500 (diff) | |
improve find string
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 4 |
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 |
