Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safeguard CMake targets #495

Open
mmoelle1 opened this issue Jul 17, 2023 · 0 comments
Open

Safeguard CMake targets #495

mmoelle1 opened this issue Jul 17, 2023 · 0 comments
Assignees

Comments

@mmoelle1
Copy link
Collaborator

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):)
@rturrado rturrado self-assigned this Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants