I thought this PR would build on Python's interface to CMake: https://github.com/pytorch/pytorch/blob/master/tools/build_pytorch_libs.py#L51 Kind of like https://github.com/pytorch/pytorch/blob/master/tools/setup_helpers/cmake.py#L94 Maybe a little too heavy-handed for our purposes. _Originally posted by @oleksandr-pavlyk in https://github.com/IntelPython/dpctl/pull/168#issuecomment-723198177_