Fix broken CMakeList.txt under MinGW (again) (Issue 476)

Sorry about that Anonimal (x2)
pull/477/head
Jeffrey Walton 2017-08-28 18:51:41 -04:00
parent 238154966c
commit 7e7de550e9
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ endfunction(CheckCompilerOption)
function(DumpMachine output pattern)
execute_process(
COMMAND sh -c "${CMAKE_CXX_COMPILER} -dumpmachine 2>&1"
COMMAND egrep -i -c "${pattern}"
COMMAND grep -i -c -E "${pattern}"
OUTPUT_VARIABLE ${output}
OUTPUT_STRIP_TRAILING_WHITESPACE)
set(${output} "${${output}}" PARENT_SCOPE)