Tests: Avoid interference from environment in RunCMake.find_library

Merged William R. Dieter requested to merge williamr/cmake:find_library-clean-env into master

Clear $ENV{CMAKE_PREFIX_PATH} in several RunCMake.find_library tests because on Windows, a CMAKE_PREFIX_PATH with two consecutive semicolons causes a library to be found when it should not be.

None of the updated tests expect CMAKE_PREFIX_PATH from the environment to influence the test, so clear the variable entirely to guarantee it will not affect the test.

Signed-off-by: William R. Dieter william.r.dieter@intel.com
Fixes: #23111 (closed)

Edited by Brad King

Merge request reports