浏览代码

stop boost.locale use system icu library (#7521)

with icu=false , boost.locale will find and use system libicu-devel
setup BOOST_LOCALE_ENABLE_ICU to fix it.
xiongyang 2 月之前
父节点
当前提交
420dd6d334
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/b/boost/cmake/install.lua

+ 1 - 0
packages/b/boost/cmake/install.lua

@@ -86,6 +86,7 @@ function _add_libs_configs(package, configs)
     table.insert(configs, "-DBOOST_ENABLE_MPI=" .. (package:config("mpi") and "ON" or "OFF"))
     if package:config("locale") then
         table.insert(configs, "-DCMAKE_CXX_STANDARD=17")
+        table.insert(configs, "-DBOOST_LOCALE_ENABLE_ICU=" .. (package:config("icu") and "ON" or "OFF"))
     end
 
     _add_iostreams_configs(package, configs)