Skip to content

Safeguard CMake targets #495

@mmoelle1

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):)

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