This is related to this post:
I’m using cmake from Visual Studios community 2017 to build META-toolkit.
It runs the following command(shortened for convenience):
cmake.exe -G "Ninja" -DCMAKE_INSTALL_PREFIX:PATH="D:\Programs\meta-toolkit\install\meta-default" -DCMAKE_BUILD_TYPE="Release" -DICU_ROOT="D:/Programs/meta-toolkit/deps/icu-60.2" -DICU_DIR="D:/Programs/meta-toolkit/deps/icu-60.2/bin64" -DCMAKE_CXX_COMPILER="cl.exe" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_MAKE_PROGRAM="ninja.exe" "D:\Programs\meta-toolkit"
I get the following error:
1> -- ICU version found is 58.2.0, expected 60.2; attempting to build ICU from scratch... 1> -- ICU building not supported on Windows. 1> CMake Error at deps/meta-cmake/FindOrBuildICU.cmake:56 (message): 1> -- Please download the latest ICU binaries from http://site.icu-project.org/download 1> Call Stack (most recent call first): 1> CMakeLists.txt(92): (FindOrBuildICU) 1> 1> 1> -- Configuring incomplete, errors occurred!
I downloaded the 60.2 binaries. They are in
deps/icu-60.2 and contains the folders
FindOrBuildICU.cmake, it looks like cmake can’t find the correct ICU directory. I tried setting ICU_ROOT and ICU_DIR to the root directory and also to the
bin64 directory but this doesn’t work.
ICU_DIR don’t appear to be used anywhere in the make files. How is cmake supposed to find ICU?