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

Pass configuration options to Cmake ? #7500

Closed
kulicuu opened this issue Oct 10, 2019 · 1 comment
Closed

Pass configuration options to Cmake ? #7500

kulicuu opened this issue Oct 10, 2019 · 1 comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@kulicuu
Copy link

kulicuu commented Oct 10, 2019

edit This was with stable at v1.38. Trying now with nightly, there is no issue, maybe because the cmake dependency is handled differently (#6368) ?

edit2 Still having this issue with cmake in new builds, even with nightly build.

edit3 I've been able to 'solve' this by hiding my Python27 directory, deleting the /target dir and building from scratch. Of course I have software depending on Python27 being there, so it would be better to be able to granularly configure Cmake through Cargo for this.

edit4 I'm considering the possibility that I will need to look into invocation of Cmake from the Vulkano stuff rather than directly through Cargo. This may not be a Cargo issue at all in that case.

I'm running cargo run --bin [...] on a Vulkano example, and getting a Python version error:

CMake Error at C:/msys64/mingw64/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find PythonInterp: Found unsuitable version "2.7.16", but
  required is at least "3" (found C:/Python27/python.exe)
Call Stack (most recent call first):
  C:/msys64/mingw64/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:376 (_FPHSA_FAILURE_MESSAGE)
  C:/msys64/mingw64/share/cmake-3.15/Modules/FindPythonInterp.cmake:160 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  spirv-tools/CMakeLists.txt:176 (find_package)
  spirv-tools/CMakeLists.txt:186 (find_host_package)

I've got my system environment variables configured, path is good to Python3, and even tried an alias. Now looking to configure the cmake execution, but can't find a way to do this cargo and/or rustc, at least documented.

@kulicuu kulicuu added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Oct 10, 2019
@ehuss
Copy link
Contributor

ehuss commented Oct 10, 2019

This doesn't sound like a Cargo issue. You may want to follow up with the cmake crate or the shaderc crate which is running cmake. Or try one of the user forums or chat platforms.

@ehuss ehuss closed this as completed Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Projects
None yet
Development

No branches or pull requests

2 participants