]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Update CMakeLists.txt
authorevo <149657734+evo-i@users.noreply.github.com>
Sat, 16 Dec 2023 21:32:21 +0000 (00:32 +0300)
committerGitHub <noreply@github.com>
Sat, 16 Dec 2023 21:32:21 +0000 (00:32 +0300)
Now saved to variable.

CMakeLists.txt

index f2ab0d8abf8bb7a0dc127afb937b41d971fa5869..e9e9dc928a574f111f5046eb9a9c753c1766279a 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 ECHO_OUTPUT_VARIABLE CMAKE_GNU_C_MACHINE)
+  execute_process (COMMAND ${CMAKE_C_COMPILER} -dumpmachine ERROR_QUIET OUTPUT_VARIABLE CMAKE_GNU_C_MACHINE)
 else ()
   exec_program(${CMAKE_C_COMPILER} ARGS -dumpmachine OUTPUT_VARIABLE CMAKE_GNU_C_MACHINE)
 endif ()