From: evo <149657734+evo-i@users.noreply.github.com> Date: Sat, 16 Dec 2023 21:23:51 +0000 (+0300) Subject: Fix ECHO_OUTPUT_VARIABLE X-Git-Tag: json-c-0.18-20240915~18^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e85c8ada5433148a745c98c84d6d201437242091;p=thirdparty%2Fjson-c.git Fix ECHO_OUTPUT_VARIABLE --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 8876500e..f2ab0d8a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -180,7 +180,7 @@ endif() # So, if it looks like we're compiling for a system like that just disable # locale handling entirely. if (CMAKE_VERSION GREATER_EQUAL "3.28") - execute_process (COMMAND ${CMAKE_C_COMPILER} -dumpmachine OUTPUT_QUIET ERROR_QUIET OUTPUT_VARIABLE CMAKE_GNU_C_MACHINE) + execute_process (COMMAND ${CMAKE_C_COMPILER} -dumpmachine OUTPUT_QUIET ERROR_QUIET ECHO_OUTPUT_VARIABLE CMAKE_GNU_C_MACHINE) else () exec_program(${CMAKE_C_COMPILER} ARGS -dumpmachine OUTPUT_VARIABLE CMAKE_GNU_C_MACHINE) endif ()