diff options
| -rw-r--r-- | xmake/modules/package/manager/cmake/find_package.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/cmake/find_package.lua b/xmake/modules/package/manager/cmake/find_package.lua index d9abd6b00..134b14c3e 100644 --- a/xmake/modules/package/manager/cmake/find_package.lua +++ b/xmake/modules/package/manager/cmake/find_package.lua @@ -56,7 +56,7 @@ function _find_package(cmake, name, opt) local moduledirs = configs.moduledirs or opt.moduledirs if moduledirs then for _, moduledir in ipairs(moduledirs) do - cmakefile:print("add_cmake_modules(%s)", moduledir) + cmakefile:print("list(APPEND CMAKE_MODULE_PATH \"%s\")", (moduledir:gsub("\\", "/"))) end end -- e.g. set(Boost_USE_STATIC_LIB ON) |
