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 CMAKE_GENERATOR_PLATFORM thorugh scikit_build in win32 builds #1143

Merged
merged 2 commits into from
Feb 17, 2021

Conversation

vvilpas
Copy link
Contributor

@vvilpas vvilpas commented Feb 17, 2021

Summary

It seems that when forcing scikit-build to use Visual Studio 2019 through
CMAKE_GENERATOR env var, it is always assuming it is building for 64 bits,
even if you are working with Python 32 bits. More over, it doesn't honor the
CMAKE_GENERATOR_PLATFORM env variable, so no option to use the proper 32 bits
compiler. In this commit we check if we are in a Win 32 bit Python environment
and pass CMAKE_GENERATOR_PLATFORM=Win32 directly to CMake.

Details and comments

It seems that when forcing scikit-build to use Visual Studio 2019 through
CMAKE_GENERATOR env var, it is always asumming it is building for 64 bits,
even if you are working with Python 32 bits. More over, it doesn't honor the
CMAKE_GENERATOR_PLATFORM env variable, so no option to use the proper 32 bits
compiler. In this commit we check if we are in a Win 32 bit Python environment
and pass CMAKE_GENERATOR_PLATFORM=Win32 directly to CMake.
@mtreinish mtreinish merged commit 998d532 into Qiskit:master Feb 17, 2021
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

Successfully merging this pull request may close these issues.

2 participants