-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] ensure compatibility with yaml-cpp < 0.8.0 (#1678)
- Loading branch information
1 parent
0b60453
commit 8f80696
Showing
4 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Create targets to be compatible with yaml-cpp < 0.8.0 | ||
macro(yaml_cpp_create_compatibility_targets) | ||
if (NOT TARGET yaml-cpp::yaml-cpp AND TARGET yaml-cpp) | ||
# ALIASing a imported non-global library requires CMake 3.18 so we do this | ||
add_library(yaml-cpp::yaml-cpp INTERFACE IMPORTED) | ||
target_link_libraries(yaml-cpp::yaml-cpp INTERFACE yaml-cpp) | ||
endif() | ||
endmacro() |