mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
FindPkgConfig: Show more info when pkg-config --version fails
Fixes: #21239
This commit is contained in:
@@ -47,7 +47,9 @@ if (PKG_CONFIG_EXECUTABLE)
|
|||||||
string(APPEND _PKG_CONFIG_FAILURE_MESSAGE
|
string(APPEND _PKG_CONFIG_FAILURE_MESSAGE
|
||||||
"The command\n"
|
"The command\n"
|
||||||
" \"${PKG_CONFIG_EXECUTABLE}\" --version\n"
|
" \"${PKG_CONFIG_EXECUTABLE}\" --version\n"
|
||||||
" failed with output\n${_PKG_CONFIG_VERSION_ERROR}"
|
" failed with output:\n${PKG_CONFIG_VERSION_STRING}\n"
|
||||||
|
" stderr: \n${_PKG_CONFIG_VERSION_ERROR}\n"
|
||||||
|
" result: \n${_PKG_CONFIG_VERSION_RESULT}"
|
||||||
)
|
)
|
||||||
set(PKG_CONFIG_EXECUTABLE "")
|
set(PKG_CONFIG_EXECUTABLE "")
|
||||||
unset(PKG_CONFIG_VERSION_STRING)
|
unset(PKG_CONFIG_VERSION_STRING)
|
||||||
|
|||||||
Reference in New Issue
Block a user