Avoid setting CMake variables globally that also exist as target-specific.