From cc1641e0f84c3baa9c28cc653b4891881befc185 Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 19 Dec 2023 20:27:56 +0100 Subject: [PATCH] Avoid use of deprecated `exec_program` --- lib/cmake/modules/ReflectionGenerator.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/cmake/modules/ReflectionGenerator.cmake b/lib/cmake/modules/ReflectionGenerator.cmake index ba7a57e..984a341 100644 --- a/lib/cmake/modules/ReflectionGenerator.cmake +++ b/lib/cmake/modules/ReflectionGenerator.cmake @@ -44,10 +44,10 @@ if (NOT REFLECTION_GENERATOR_CLANG_RESOURCE_DIR) message(FATAL_ERROR "Unable to find the clang executable to determine Clang's resource directory") endif () endif () - exec_program( - ${REFLECTION_GENERATOR_CLANG_BIN} ARGS - -print-resource-dir - OUTPUT_VARIABLE REFLECTION_GENERATOR_CLANG_RESOURCE_DIR) + execute_process( + COMMAND ${REFLECTION_GENERATOR_CLANG_BIN} -print-resource-dir + OUTPUT_VARIABLE REFLECTION_GENERATOR_CLANG_RESOURCE_DIR + OUTPUT_STRIP_TRAILING_WHITESPACE) endif () if (NOT REFLECTION_GENERATOR_CLANG_RESOURCE_DIR OR NOT IS_DIRECTORY "${REFLECTION_GENERATOR_CLANG_RESOURCE_DIR}") message(