find_package is defaulting to the wrong Qt5 when Anaconda3 is installed
when I have in my CMakeLIsts.txt
find_package (Qt5 COMPONENTS Core REQUIRED)
the result in CMakeCache.txt is
//The directory containing a CMake configuration file for Qt5Core. Qt5Core_DIR:PATH=C:/ProgramData/Anaconda3/Library/lib/cmake/Qt5Core
the result should be
This is causing a linker failure as the project is 32 bit but the anaconda version of Qt is 64 bit.
fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
In fact, Qt5 installed multiple copies,
msvc2013_64/ msvc2017_64/ winrt_x64_msvc2015/ winrt_x86_msvc2017/ msvc2015/ winrt_armv7_msvc2015/ winrt_x64_msvc2017/ msvc2015_64/ winrt_armv7_msvc2017/ winrt_x86_msvc2015/
and I have specified that the target platform is Win32 x86 for Visual Studio 2015, which means find_package should have enough information to default select the msvc2015 directory from the list above, unless something is missing in my configuration.
If this is expected behavior, documentation (and googling) is not sufficiently clear for me to determine a path forward.
Please advise as to what steps to take in order to direct find_package to the correct Qt5 directories.