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 )