summaryrefslogtreecommitdiffstats
path: root/web/server/h2o/libh2o/cmake/FindLibYAML.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'web/server/h2o/libh2o/cmake/FindLibYAML.cmake')
-rw-r--r--web/server/h2o/libh2o/cmake/FindLibYAML.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/server/h2o/libh2o/cmake/FindLibYAML.cmake b/web/server/h2o/libh2o/cmake/FindLibYAML.cmake
new file mode 100644
index 000000000..0249fd797
--- /dev/null
+++ b/web/server/h2o/libh2o/cmake/FindLibYAML.cmake
@@ -0,0 +1,5 @@
+FIND_PATH(LIBYAML_INCLUDE_DIR NAMES yaml.h)
+FIND_LIBRARY(LIBYAML_LIBRARIES NAMES yaml libyaml)
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBYAML DEFAULT_MSG LIBYAML_LIBRARIES LIBYAML_INCLUDE_DIR)