CMake/Tests/RunCMake/find_library
Brad King 5e5132e1b1 MinGW: Search for packages in standard MSYSTEM environment prefixes
MSYS2 and similar MinGW/MSYS distributions define development
environments with a `MSYSTEM` environment variable.  Each such
environment has a documented installation prefix for its packages,
often provided by a `MSYSTEM_PREFIX` environment variable.
Since commit 84a25fc263 (cmake_host_system_information: Add
MSYSTEM_PREFIX query, 2023-09-08) we can look up this prefix.

Add `$MSYSTEM_PREFIX/local` and `$MSYSTEM_PREFIX` to our system search
prefixes when targeting MinGW under `MSYSTEM` environments.  This is
their equivalent to `/usr/local` and `/usr`, which we search by default
on UNIX systems.

Issue: #24216
2023-09-13 08:35:59 -04:00
..
32bit find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
64bit find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
default.32bit find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
default.64bit find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
lib
MSYSTEM_PREFIX/lib MinGW: Search for packages in standard MSYSTEM environment prefixes 2023-09-13 08:35:59 -04:00
CMakeLists.txt Tests/RunCMake: Update cmake_minimum_required versions 2023-02-11 06:24:22 -05:00
Created-stderr.txt
Created.cmake
FromPATHEnv-stderr.txt Find: Support per call disabling of CMAKE_INSTALL_PREFIX 2022-04-15 09:33:55 -04:00
FromPATHEnv-stdout-cygwin.txt
FromPATHEnv-stdout-msys.txt
FromPATHEnv-stdout-windows.txt
FromPATHEnv-stdout.txt
FromPATHEnv.cmake Tests: Avoid interference from environment in RunCMake.find_library 2022-01-14 13:15:09 -05:00
FromPATHEnvDebugVar-stderr.txt Find: Support per call disabling of CMAKE_INSTALL_PREFIX 2022-04-15 09:33:55 -04:00
FromPATHEnvDebugVar-stdout-cygwin.txt cmake: Add filtered debug-find options 2021-12-17 08:55:21 -05:00
FromPATHEnvDebugVar-stdout-msys.txt cmake: Add filtered debug-find options 2021-12-17 08:55:21 -05:00
FromPATHEnvDebugVar-stdout-windows.txt cmake: Add filtered debug-find options 2021-12-17 08:55:21 -05:00
FromPATHEnvDebugVar-stdout.txt cmake: Add filtered debug-find options 2021-12-17 08:55:21 -05:00
FromPATHEnvDebugVar.cmake Tests: Avoid interference from environment in RunCMake.find_library 2022-01-14 13:15:09 -05:00
FromPrefixPath-stdout.txt
FromPrefixPath.cmake Tests: Avoid interference from environment in RunCMake.find_library 2022-01-14 13:15:09 -05:00
FromScriptMode-stderr-darwin.txt find_library: Improve regex readability in --debug-find output 2023-07-13 09:48:35 -04:00
FromScriptMode-stderr-windows.txt find_library: Infer library prefix and suffix when in script mode 2021-07-19 12:55:18 -04:00
FromScriptMode-stderr.txt find_library: Improve regex readability in --debug-find output 2023-07-13 09:48:35 -04:00
FromScriptMode.cmake find_library: Infer library prefix and suffix when in script mode 2021-07-19 12:55:18 -04:00
IgnoreInstallPrefix-stderr.txt Find: Support per call disabling of CMAKE_INSTALL_PREFIX 2022-04-15 09:33:55 -04:00
IgnoreInstallPrefix-stdout.txt Find: Support per call disabling of CMAKE_INSTALL_PREFIX 2022-04-15 09:33:55 -04:00
IgnoreInstallPrefix.cmake Find: Support per call disabling of CMAKE_INSTALL_PREFIX 2022-04-15 09:33:55 -04:00
IgnoreStagingAndInstallPrefix-stderr.txt CMAKE_FIND_USE_INSTALL_PREFIX considers CMAKE_STAGING_PREFIX 2022-08-30 17:52:40 -04:00
IgnoreStagingAndInstallPrefix-stdout.txt CMAKE_FIND_USE_INSTALL_PREFIX considers CMAKE_STAGING_PREFIX 2022-08-30 17:52:40 -04:00
IgnoreStagingAndInstallPrefix.cmake CMAKE_FIND_USE_INSTALL_PREFIX considers CMAKE_STAGING_PREFIX 2022-08-30 17:52:40 -04:00
IgnoreStagingPrefix-stderr.txt CMAKE_FIND_USE_INSTALL_PREFIX considers CMAKE_STAGING_PREFIX 2022-08-30 17:52:40 -04:00
IgnoreStagingPrefix-stdout.txt CMAKE_FIND_USE_INSTALL_PREFIX considers CMAKE_STAGING_PREFIX 2022-08-30 17:52:40 -04:00
IgnoreStagingPrefix.cmake CMAKE_FIND_USE_INSTALL_PREFIX considers CMAKE_STAGING_PREFIX 2022-08-30 17:52:40 -04:00
LibArchLink-stderr.txt
LibArchLink.cmake
LibSymLink-stderr.txt
LibSymLink.cmake
MSYSTEM_PREFIX-stdout.txt MinGW: Search for packages in standard MSYSTEM environment prefixes 2023-09-13 08:35:59 -04:00
MSYSTEM_PREFIX.cmake MinGW: Search for packages in standard MSYSTEM environment prefixes 2023-09-13 08:35:59 -04:00
NO_CACHE-stdout.txt
NO_CACHE.cmake
PrefixInPATH-stderr.txt Find: Support per call disabling of CMAKE_INSTALL_PREFIX 2022-04-15 09:33:55 -04:00
PrefixInPATH-stdout-cygwin.txt
PrefixInPATH-stdout-msys.txt
PrefixInPATH-stdout-windows.txt RunCMake: Automatically support platform out override files 2019-06-21 11:06:39 -04:00
PrefixInPATH-stdout.txt
PrefixInPATH.cmake
registry_host32bit.reg find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
registry_host64bit.reg find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
REGISTRY_VIEW-no-view-result.txt find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
REGISTRY_VIEW-no-view-stderr.txt find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
REGISTRY_VIEW-no-view.cmake find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
REGISTRY_VIEW-wrong-view-result.txt find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
REGISTRY_VIEW-wrong-view-stderr.txt find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
REGISTRY_VIEW-wrong-view.cmake find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
Registry-query.cmake find_* commands: add control over Windows registry views 2022-04-29 22:00:02 +02:00
Required-result.txt
Required-stderr.txt
Required-stdout.txt
Required.cmake
RunCMakeTest.cmake MinGW: Search for packages in standard MSYSTEM environment prefixes 2023-09-13 08:35:59 -04:00
VALIDATOR-no-function-result.txt find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR-no-function-stderr.txt find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR-no-function.cmake find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR-specify-macro-result.txt find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR-specify-macro-stderr.txt find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR-specify-macro.cmake find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR-stderr.txt find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR-stdout.txt find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR-undefined-function-result.txt find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR-undefined-function-stderr.txt find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR-undefined-function.cmake find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00
VALIDATOR.cmake find_(program,library,file,path): add validation function 2022-06-14 16:17:46 -04:00