add CMake code to download and compile libyaml if not found locally

This commit is contained in:
Axel Kohlmeyer
2020-11-10 17:58:26 -05:00
parent 6056171b45
commit 2f3cbfed13
2 changed files with 34 additions and 2 deletions

View File

@ -1,8 +1,8 @@
find_package(YAML)
if(NOT YAML_FOUND)
message(STATUS "Skipping tests because libyaml is not found")
return()
# download and build a local copy of libyaml
include(YAML)
endif()
if(CMAKE_VERSION VERSION_LESS 3.12)