Skip to content

Safeguard CMake targets #495

Description

@mmoelle1

Dear OpenQL developers,

could you please consider safeguarding dependency targets in the form

if(NOT target)
  add_subdirectory(target)
endif()

Currently, it is not possible to have both OpenQL and QX as CMake subproject due to duplicate targets:

  • func-gen (CMake Error at build/_deps/qx-simulator-src/deps/libqasm/src/cqasm/func-gen/CMakeLists.txt:4 (add_executable):)
  • cqasm_objlib (CMake Error at build/_deps/qx-simulator-src/deps/libqasm/src/cqasm/CMakeLists.txt:122 (add_library):)
  • cqasm (CMake Error at build/_deps/qx-simulator-src/deps/libqasm/src/cqasm/CMakeLists.txt:176 (add_library):)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions