_cmake_cuda_whole_flag?

CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
_CMAKE_CUDA_WHOLE_FLAG

when attempting to build from source using python3 setup.py bdist_wheel

Might be related to this issue.

Problem solved, need to launch python setup.py build —cmake-only first