Don't double-set CMAKE_PREFIX_PATH if set by user.

Authored by mpyne on Jul 1 2018, 11:15 PM.

Description

Don't double-set CMAKE_PREFIX_PATH if set by user.

This fixes bug 395627, where the error is actually that we set
CMAKE_PREFIX_PATH twice if qtdir is set to a non-system path and the
user is also setting CMAKE_PREFIX_PATH.

Unfortunately the second value overrides the first (the one the user
set).

Also added a test for this, which fails before the fix and passes
afterwards. The full test suite (all 5...) pass.

BUG:395627
FIXED-IN:18.08

Details

Committed
mpyneJul 1 2018, 11:15 PM
Parents
R365:14b5093bf153: Fake a JSON module to make --pretend work without kde-build-metadata.
Branches
Unknown
Tags
Unknown