Visual Studio 2019 MSVC version:"14.20.27508" https://codeload.github.com/open-mpi/hwloc/zip/refs/tags/hwloc-2.8.0 "hwloc.sln" configuration "ReleaseStatic" and platform "x64" https://codeload.github.com/oneapi-src/oneTBB/zip/refs/tags/v2021.7.0 CMakeLists.txt line:226", modify the content "if (APPLE OR NOT BUILD_SHARED_LIBS)" to "if (APPLE)" cmake -G "Visual Studio 16 2019" -A x64 -DBUILD_SHARED_LIBS=OFF -DTBB_DISABLE_HWLOC_AUTOMATIC_SEARCH=ON -DTBB_TEST=OFF -DTBB_BUILD=OFF -DTBBMALLOC_BUILD=OFF -DTBBMALLOC_PROXY_BUILD=OFF -DCMAKE_HWLOC_2_5_LIBRARY_PATH=hwloc-hwloc-2.8.0\contrib\windows\x64\ReleaseStatic -DCMAKE_HWLOC_2_5_INCLUDE_PATH=hwloc-hwloc-2.8.0\hwloc-hwloc-2.8.0\include -DCMAKE_HWLOC_2_5_DLL_PATH=hwloc-hwloc-2.8.0\contrib\windows\x64\ReleaseStatic .. cmake --build . --config release Signed-off-by: Chen Peter <peter.chen@intel.com> Co-authored-by: Fang Xu <fang.xu@intel.com>