From 0a6785f764658705ef7a43a3cfbb8bd1c7d81355 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 25 Jun 2024 09:37:57 +0100 Subject: [PATCH] Update GetCompilerAndPlatform deprecated function --- .../source/compiler/cmake/modules/GetCompilerAndPlatform.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/physx/source/compiler/cmake/modules/GetCompilerAndPlatform.cmake b/physx/source/compiler/cmake/modules/GetCompilerAndPlatform.cmake index 5632b82af..e423fd71b 100644 --- a/physx/source/compiler/cmake/modules/GetCompilerAndPlatform.cmake +++ b/physx/source/compiler/cmake/modules/GetCompilerAndPlatform.cmake @@ -26,7 +26,7 @@ FUNCTION(CompilerDumpVersion _OUTPUT_VERSION) - EXEC_PROGRAM(${CMAKE_CXX_COMPILER} + EXECUTE_PROCESS(COMMAND ${CMAKE_CXX_COMPILER} ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion OUTPUT_VARIABLE COMPILER_VERSION )