FindBZip2 fails to set BZIP2_NEED_PREFIX if using x64

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

FindBZip2 fails to set BZIP2_NEED_PREFIX if using x64

Luca Beldi

Hi Everyone,

I posted a bug ticket ( but I’m not sure if this is a bug in CMake or I just missed something.


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



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


Anyone experienced this before?


Luca Beldi

This communication may contain privileged or confidential information. If you are not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution or copying of this message is strictly prohibited. Any views or opinions presented are solely those of the author and do not necessarily represent those of TwentyFour Asset Management LLP or their affiliates. If you have received this communication in error, please notify us immediately by email, and delete the original message. We do not waive confidentiality by mis-transmission. This communication is directed in the UK to those persons who are Eligible Counterparties or Professional Clients (as defined by the Financial Conduct Authority). This is not an offer, or solicitation of any offer to buy or sell any security, investment or other product.

TwentyFour Asset Management LLP treats all personal data in accordance with the Data Protection Act 1998 and is duly registered with the Information Commissioner’s Office as a Data Controller. Personal data is only retained and used by us as a means of communication and will not be released to any other parties.

TwentyFour Asset Management LLP is a Limited Liability Partnership incorporated in England under Partnership No. OC335015 with its registered office at 8th Floor, The Monument Building, 11 Monument Street, London, EC3R 8AF and is authorised and regulated in the UK by the Financial Conduct Authority, FRN No.481888.


Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe: