diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2023-07-24 21:03:16 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2023-07-24 21:23:32 (GMT) |
commit | 13f7ae287820836a16f6a1f70617b3d494b232d7 (patch) | |
tree | 54e6f23f4dbc1d7e89721640e6d7f37fe6cce3b0 | |
parent | 31cab35bb648b8b3a36192d42c56ba10f5247245 (diff) | |
download | CMake-13f7ae287820836a16f6a1f70617b3d494b232d7.zip CMake-13f7ae287820836a16f6a1f70617b3d494b232d7.tar.gz CMake-13f7ae287820836a16f6a1f70617b3d494b232d7.tar.bz2 |
FindQt: Replace exec_program() with execute_process()
-rw-r--r-- | Modules/FindQt.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FindQt.cmake b/Modules/FindQt.cmake index 44a1f41..604f8e3 100644 --- a/Modules/FindQt.cmake +++ b/Modules/FindQt.cmake @@ -91,7 +91,7 @@ endif () # now find qmake find_program(QT_QMAKE_EXECUTABLE_FINDQT NAMES qmake PATHS "${QT_SEARCH_PATH}/bin" "$ENV{QTDIR}/bin") if(QT_QMAKE_EXECUTABLE_FINDQT) - exec_program(${QT_QMAKE_EXECUTABLE_FINDQT} ARGS "-query QT_VERSION" + execute_process(COMMAND ${QT_QMAKE_EXECUTABLE_FINDQT} -query QT_VERSION OUTPUT_VARIABLE QTVERSION) if(QTVERSION MATCHES "4") set(QT_QMAKE_EXECUTABLE ${QT_QMAKE_EXECUTABLE_FINDQT} CACHE PATH "Qt4 qmake program.") @@ -103,8 +103,8 @@ if(QT_QMAKE_EXECUTABLE_FINDQT) endif() if(QT_QMAKE_EXECUTABLE_FINDQT) - exec_program( ${QT_QMAKE_EXECUTABLE_FINDQT} - ARGS "-query QT_INSTALL_HEADERS" + execute_process(COMMAND ${QT_QMAKE_EXECUTABLE_FINDQT} + -query QT_INSTALL_HEADERS OUTPUT_VARIABLE qt_headers ) endif() |