diff --git a/CMakeLists.txt b/CMakeLists.txt index bbc87510de3..f38ac5f99cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -287,7 +287,7 @@ set(HOST_LINK_VERSION) if (APPLE) set(LD_V_OUTPUT) execute_process( - COMMAND sh -c "${CMAKE_LINKER} -v 2>&1 | head -1" + COMMAND sh -c "${CMAKE_LINKER} -v 2>&1" | head -1 RESULT_VARIABLE HAD_ERROR OUTPUT_VARIABLE LD_V_OUTPUT )