diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-09-25 13:55:42 (GMT) |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-09-25 13:56:05 (GMT) |
commit | ab8bd48352df060c4ead210fe30dc4736646206b (patch) | |
tree | 026caa5c5bdfc5be85025d5d85cb6c85381cafa7 /Tests/FindPython/Python2Module | |
parent | 3201dd521e1b816dca9caba8792b5a5890546d1c (diff) | |
download | CMake-ab8bd48352df060c4ead210fe30dc4736646206b.zip CMake-ab8bd48352df060c4ead210fe30dc4736646206b.tar.gz CMake-ab8bd48352df060c4ead210fe30dc4736646206b.tar.bz2 |
FindPkgConfig: Search for pkg-config.bat file on a Windows host
The strawberry perl distribution ships a pkg-config file and a
pkg-config.bat file.
find_program() does not usually look for a .bat file program unless
explicitly specified in the NAMES argument. This would cause
CMake to find the non-bat file, and executing that with
execute_process() leads to a
'%1 is not a valid Win32 application' error.
Prefer to search for pkg-config.bat file when on a Windows host, in
additiona to the regular pkg-config file.
Fixes: #21239
Diffstat (limited to 'Tests/FindPython/Python2Module')
0 files changed, 0 insertions, 0 deletions