Skip to content

Commit

Permalink
submodule yaml-cpp added (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
rex-schilasky authored Aug 2, 2024
1 parent a62554f commit 6766b32
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@
[submodule "thirdparty/ecaludp/ecaludp"]
path = thirdparty/ecaludp/ecaludp
url = https://github.com/eclipse-ecal/ecaludp.git
[submodule "thirdparty/yaml-cpp/yaml-cpp"]
path = thirdparty/yaml-cpp/yaml-cpp
url = https://github.com/jbeder/yaml-cpp
9 changes: 9 additions & 0 deletions thirdparty/yaml-cpp/build-yaml-cpp.cmake
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)
8 changes: 8 additions & 0 deletions thirdparty/yaml-cpp/compatibility-yaml-cpp.cmake
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()
1 change: 1 addition & 0 deletions thirdparty/yaml-cpp/yaml-cpp
Submodule yaml-cpp added at 9f7bab

0 comments on commit 6766b32

Please sign in to comment.