-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a62554f
commit 6766b32
Showing
4 changed files
with
21 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
include_guard(GLOBAL) | ||
|
||
set(YAML_CPP_BUILD_TESTS OFF CACHE BOOL "My option" FORCE) | ||
set(YAML_MSVC_SHARED_RT ON CACHE BOOL "My option" FORCE) | ||
set(YAML_BUILD_SHARED_LIBS OFF CACHE BOOL "My option" FORCE) | ||
set(YAML_CPP_BUILD_TOOLS OFF CACHE BOOL "My option" FORCE) | ||
set(YAML_CPP_BUILD_CONTRIB OFF CACHE BOOL "My option" FORCE) | ||
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/yaml-cpp thirdparty/yaml-cpp EXCLUDE_FROM_ALL SYSTEM) | ||
set_property(TARGET yaml-cpp PROPERTY FOLDER thirdparty/yaml-cpp) |
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() |