conan-center-index: [package] cmake/3.16.3: not working for Windows
Since the Conan CMake Installer packages are deprecated I wanted to switch to the new cmake packages on conan-center.
Unfortunately its not working under windows, because only Linux binaries are downloaded when the package is used as a build_require.
I reckon all package recipes for cmake will have this issue, because there is no distinction between Linux and Windows inside the source() method. conan_data.yml does also only contain urls to the the linux archives.
The old CMake Recipes work fine, by the way.
Package and Environment Details
- Package Name/Version: cmake/3.16.3
- Operating System+version: Windows 7
- Compiler+version: GCC 4.7
- Conan version: conan 1.25.0
- Python version: Python 3.7.1
Conan profile
Configuration for profile x86_64_MinGW:
[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=4.7
compiler.libcxx=libstdc++11
build_type=Release
[options]
[build_requires]
[env]
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 22 (17 by maintainers)
Friendly reminder to re-try, otherwise I think we should close this issue
Are there any update regarding this issue?
We are facing the exact error number:
on a Microsoft Azure CI agent (Windows 2016, the problem is not appearing on Windows 2019 agents for some reason), and it is preventing us to move our whole infra away from the deprecated
cmake_installer/...recipes.Thank you for reading!
Oh! I think I found it. The cmake is being run in the source_subfolder , so it’s skipping the CMakeLists.txt in the root that calls conan_basic_setup()
The 3221225781 error indicates a missing library. These binaries have picked up a dependency on “VCRUNTIME140_1D.dll”
Old:
New: