[cmake-developers] [CMake 0013266]: --find-package seems to be unworkable

Mantis Bug Tracker mantis at public.kitware.com
Sat Jun 2 19:01:14 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=13266 
====================================================================== 
Reported By:                Dave Abrahams
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13266
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-06-02 19:01 EDT
Last Modified:              2012-06-02 19:01 EDT
====================================================================== 
Summary:                    --find-package seems to be unworkable
Description: 
cmake --find-package -DNAME=BZip2 -DCOMPILER_ID=GNU -DLANGUAGE=C -DMODE=LINK

CMake Error at /opt/local/share/cmake-2.8/Modules/CheckLibraryExists.cmake:44
(TRY_COMPILE):
  The TRY_COMPILE() command is not supported in --find-package mode.
Call Stack (most recent call first):
  /opt/local/share/cmake-2.8/Modules/FindBZip2.cmake:49 (CHECK_LIBRARY_EXISTS)
  /opt/local/share/cmake-2.8/Modules/CMakeFindPackageMode.cmake:167
(find_package)


BZip2 not found.
CMake Error: Problem processing arguments. Aborting.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-06-02 19:01 Dave Abrahams  New Issue                                    
======================================================================




More information about the cmake-developers mailing list