Skip to content

Support CMAKE_GENERATOR='Ninja' #47

@mryzhov

Description

@mryzhov

If the environment variable CMAKE_GENERATOR='Ninja' is set, the build will switch to Ninja. However, py-build-cmake adds CMAKE_GENERATOR_PLATFORM ('-A', 'x64') to the configuration string, which causes it to fail:

subprocess.CalledProcessError: Command '['cmake', '-S', 'C:\Users\dev\src\openvino_tokenizers_public', '-B', 'C:\Users\dev\src\openvino_tokenizers_public\.py-build-cmake_cache\py3-none-win_amd64', '-A', 'x64', '-C', 'C:\Users\dev\src\openvino_tokenizers_public\.py-build-cmake_cache\py3-none-win_amd64\py-build-cmake-preload.cmake', '-D', 'OPENVINO_TOKENIZERS_INSTALL_BINDIR=openvino_tokenizers/lib', '-D', 'OPENVINO_TOKENIZERS_INSTALL_LIBDIR=openvino_tokenizers/lib', '-D', 'CMAKE_BUILD_TYPE:STRING=Release']' returned non-zero exit status 1.

-- Building for: Ninja
CMake Error at CMakeLists.txt:40 (project):
Generator

  Ninja

does not support platform specification, but platform

  x64

was specified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions