Silence make on OpenBSD in FindPackageModeTest(#12508)

BSD make doesn't use -v for printing its name and version, and so
complains on stderr that this is a bad command line option, used
in Tests/FindPackageModeMakefileTest/CMakeLists.txt .
Silence stderr to make that ugly output go away.
Patch by David Coppy.

Alex
This commit is contained in:
Alex Neundorf 2011-10-12 22:20:18 +02:00
parent 83e4a45609
commit 0d44ce2bf4
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ if(UNIX AND "${CMAKE_GENERATOR}" MATCHES "Makefile")
# is AFAIK a GNU make extension. Alex # is AFAIK a GNU make extension. Alex
execute_process(COMMAND ${CMAKE_MAKE_PROGRAM} -v execute_process(COMMAND ${CMAKE_MAKE_PROGRAM} -v
OUTPUT_VARIABLE makeVersionOutput OUTPUT_VARIABLE makeVersionOutput
ERROR_QUIET
TIMEOUT 10) TIMEOUT 10)
string(TOUPPER "${makeVersionOutput}" MAKE_VERSION_OUTPUT) string(TOUPPER "${makeVersionOutput}" MAKE_VERSION_OUTPUT)
if("${MAKE_VERSION_OUTPUT}" MATCHES ".*GNU MAKE.*") if("${MAKE_VERSION_OUTPUT}" MATCHES ".*GNU MAKE.*")