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 #132

Open
mmoelle1 opened this issue Jul 17, 2023 · 1 comment
Open

Safeguard CMake targets #132

mmoelle1 opened this issue Jul 17, 2023 · 1 comment

Comments

@mmoelle1
Copy link
Collaborator

Dear QX 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):)
@pablolh
Copy link
Contributor

pablolh commented Aug 4, 2023

@rturrado has been working on this and it will be fixed soon

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