MantisBT - CMake
View Issue Details
0009861CMakeModulespublic2009-11-07 09:302012-10-04 01:43
Mathieu Malaterre 
Philip Lowman 
normalminoralways
closedfixed 
CMake-2-8 
CMake 2.8.9 
0009861: find_package(Boost 1.40 REQUIRED) find_package(Boost 1.41 REQUIRED)
The following is required to fails:

find_package(Boost 1.40 REQUIRED) # assuming 1.40 is installed
find_package(Boost 1.42 REQUIRED)

I am guessing the version is being cached so that multiple calls are more efficient, but this breaks the REQUIRED behavior. Some projects may have multiple calls to find_package(Boost) with different requirement on the version.

See FindJava module for example, it properly fails for:

find_package(Java 1.5 REQUIRED)
find_package(Java 1.8 REQUIRED)

No tags attached.
Issue History
2009-11-07 09:30Mathieu MalaterreNew Issue
2010-12-14 16:11David ColeAssigned To => Philip Lowman
2010-12-14 16:11David ColeStatusnew => assigned
2012-10-04 01:43Philip LowmanNote Added: 0031173
2012-10-04 01:43Philip LowmanStatusassigned => closed
2012-10-04 01:43Philip LowmanResolutionopen => fixed
2012-10-04 01:43Philip LowmanFixed in Version => CMake 2.8.9

Notes
(0031173)
Philip Lowman   
2012-10-04 01:43   
The fix for this issue which went into 2.8.9 should also fix this bug.
http://comments.gmane.org/gmane.comp.programming.tools.cmake.devel/4062 [^]