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

Define string_theory target only if it doesn't exist yet #37

Merged
merged 1 commit into from
Feb 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cmake/string_theory-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@ set(STRING_THEORY_LIBRARIES string_theory::string_theory)

# Backwards-compatibility target. CMake <3.11 doesn't allow ALIAS libraries to
# imported targets, so this is another IMPORTED target.
add_library(string_theory INTERFACE IMPORTED)
target_link_libraries(string_theory INTERFACE string_theory::string_theory)
if(NOT TARGET string_theory)
add_library(string_theory INTERFACE IMPORTED)
target_link_libraries(string_theory INTERFACE string_theory::string_theory)
endif()
Loading