Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake bootstrapping fails if not on PATH #639

Open
tbeu opened this issue Apr 23, 2024 · 3 comments
Open

cmake bootstrapping fails if not on PATH #639

tbeu opened this issue Apr 23, 2024 · 3 comments
Assignees

Comments

@tbeu
Copy link

tbeu commented Apr 23, 2024

On Win10, I have CMake installed, but not available on PATH. When using the cmake-conan v0.18.1 with --build-missing I notice that cmake is properly resolved as dependency

cmake/3.29.2:
Appending PATH environment variable: C:\Users\tbeu.conan\data\cmake\3.29.2__\package\ca33edce272a279b24f87dc0d4cf5bbdcffbc187\bin

but it finally fails with cmake not found:

zlib/1.3.1:
Aggregating env generators

zlib/1.3.1:
Calling build()

zlib/1.3.1:
Apply patch (conan): separate static/shared builds, disable debug suffix

zlib/1.3.1:
CMake command: cmake -G "Visual Studio 15 2017" -DCMAKE_TOOLCHAIN_FILE="C:/Users/tbeu/.conan/data/zlib/1.3.1///build/8cf01e2f50fcd6b63525e70584df0326550364e1/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/tbeu/.conan/data/zlib/1.3.1///package/8cf01e2f50fcd6b63525e70584df0326550364e1" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:\Users\tbeu.conan\data\zlib\1.3.1__\build\8cf01e2f50fcd6b63525e70584df0326550364e1\src"

Der Befehl "cmake" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

zlib/1.3.1:
zlib/1.3.1: ERROR: Package '8cf01e2f50fcd6b63525e70584df0326550364e1' build failed

@memsharded memsharded self-assigned this Apr 23, 2024
@memsharded
Copy link
Member

Hi @tbeu

Thanks for your report.

It seems you are using the legacy 1.X cmake-conan integration, and it is likely that this won't work in it. Unfortunately, we no longer have the resources to keep maintaining the Conan 1.X cmake-conan integration.

I think this should work with Conan 2 cmake-conan integration based in CMake providers, but if not, please let us know and we will have a look.

@tbeu
Copy link
Author

tbeu commented Apr 23, 2024

Thanks for the fast reply. Yes, I am still on Conan 1.X because latest version 0.18.1 does not support Conan 2 yet.

@tbeu tbeu changed the title cmake bootstrapping cmake bootstrapping fails if not on PATH Apr 23, 2024
@memsharded
Copy link
Member

Thanks for the fast reply. Yes, I am still on Conan 1.X because latest version 0.18.1 does not support Conan 2 yet.

The main branch in the repo, that is now develop2 contains a Conan 2 ready version, using the new CMake providers which is a great feature because it does no longer need any modification to CMakeLists.txt files, and it is already being extensively used, for example it is used in the CLion plugin integration.

This develop2 branch cmake-conan integration (conan_provider.cmake) is the recommended cmake-conan integration for production now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants