QuTech-Delft / OpenQL

OpenQL: A Portable Quantum Programming Framework for Quantum Accelerators. https://dl.acm.org/doi/10.1145/3474222
https://openql.readthedocs.io
Other
97 stars 44 forks source link

Safeguard CMake targets #495

Open mmoelle1 opened 11 months ago

mmoelle1 commented 11 months ago

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: