Merge pull request #1872 from darktohka/cmake-regex-fix

[cmake] Fix CMake build on newer CMake versions
This commit is contained in:
Ebrahim Byagowi authored and GitHub committed 2019-07-27 01:20:55 +04:30
commit 60d0fe2eda
1 file changed
+2 -2
+2 -2
View File
@@ -142,8 +142,8 @@ endif ()
## Extract variables from Makefile files
function (extract_make_variable variable makefile_source)
string(REGEX MATCH "${variable} = ([^$]+)\\$" temp ${makefile_source})
string(REGEX MATCHALL "[^ \n\t\\]+" listVar ${CMAKE_MATCH_1})
string(REGEX MATCH "${variable} = ([^$]+)\\$" temp "${makefile_source}")
string(REGEX MATCHALL "[^ \n\t\\]+" listVar "${CMAKE_MATCH_1}")
set (${variable} ${listVar} PARENT_SCOPE)
endfunction ()