]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Fix ECHO_OUTPUT_VARIABLE
authorevo <149657734+evo-i@users.noreply.github.com>
Sat, 16 Dec 2023 21:23:51 +0000 (00:23 +0300)
committerevo <149657734+evo-i@users.noreply.github.com>
Sat, 16 Dec 2023 21:23:51 +0000 (00:23 +0300)
CMakeLists.txt

index 8876500ea3c4be1e6b51a94753839d6cd7114824..f2ab0d8abf8bb7a0dc127afb937b41d971fa5869 100644 (file)
@@ -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 ()