summaryrefslogtreecommitdiff
path: root/extra/cmake/cmake-3.11.4-find-libuv.patch
blob: 95a39cc3fb5690741609a93be0aba3dffc616d73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -rauN cmake-3.11.4/Source/Modules/FindLibUV.cmake cmake-3.11.4-find-libuv-patch/Source/Modules/FindLibUV.cmake
--- cmake-3.11.4/Source/Modules/FindLibUV.cmake	2018-06-14 14:57:31.000000000 +0200
+++ cmake-3.11.4-find-libuv-patch/Source/Modules/FindLibUV.cmake	2018-07-08 10:24:02.051505971 +0200
@@ -63,6 +63,8 @@
 set(_LibUV_H_REGEX "#[ \t]*define[ \t]+UV_VERSION_(MAJOR|MINOR|PATCH)[ \t]+[0-9]+")
 if(LibUV_INCLUDE_DIR AND EXISTS "${LibUV_INCLUDE_DIR}/uv-version.h")
   file(STRINGS "${LibUV_INCLUDE_DIR}/uv-version.h" _LibUV_H REGEX "${_LibUV_H_REGEX}")
+elseif(LibUV_INCLUDE_DIR AND EXISTS "${LibUV_INCLUDE_DIR}/uv/version.h")
+  file(STRINGS "${LibUV_INCLUDE_DIR}/uv/version.h" _LibUV_H REGEX "${_LibUV_H_REGEX}")
 elseif(LibUV_INCLUDE_DIR AND EXISTS "${LibUV_INCLUDE_DIR}/uv.h")
   file(STRINGS "${LibUV_INCLUDE_DIR}/uv.h" _LibUV_H REGEX "${_LibUV_H_REGEX}")
 else()