FindBZip2 fails to set BZIP2_NEED_PREFIX if using x64
Configuring a project that contains find_package(BZip2)
cmake "Visual Studio 14 2015" ../
will correctly produce
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
while cmake "Visual Studio 14 2015" -A x64 ../
will erroneously show
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - not found
Using "NMake Makefiles"
as generator will bear identical results for the 32 and 64 bit versions.
Tested with CMake 3.13.1
Edited by Luca