src_prepare-overlay/media-video/olive/files/FindOpenEXRUndefinedbehavior.patch

28 lines
980 B
Diff
Raw Normal View History

2020-05-11 12:07:32 +02:00
diff --git a//cmake/FindOpenEXR.cmake b/cmake/FindOpenEXR.cmake
index 2d71428..b7ea7cb 100644
--- a/cmake/FindOpenEXR.cmake
+++ b/cmake/FindOpenEXR.cmake
@@ -40,19 +40,19 @@ if(OPENEXR_INCLUDE_DIR)
${openexr_config_file}
TMP
REGEX "#define OPENEXR_VERSION_STRING.*$")
- string(REGEX MATCHALL "[0-9.]+" OPENEXR_VERSION ${TMP})
+ string(REGEX MATCHALL "[0-9.]+" OPENEXR_VERSION "${TMP}")
file(STRINGS
${openexr_config_file}
TMP
REGEX "#define OPENEXR_VERSION_MAJOR.*$")
- string(REGEX MATCHALL "[0-9]" OPENEXR_MAJOR_VERSION ${TMP})
+ string(REGEX MATCHALL "[0-9]" OPENEXR_MAJOR_VERSION "${TMP}")
file(STRINGS
${openexr_config_file}
TMP
REGEX "#define OPENEXR_VERSION_MINOR.*$")
- string(REGEX MATCHALL "[0-9]" OPENEXR_MINOR_VERSION ${TMP})
+ string(REGEX MATCHALL "[0-9]" OPENEXR_MINOR_VERSION "${TMP}")
endif()
endif()