View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009861CMakeModulespublic2009-11-07 09:302012-10-04 01:43
ReporterMathieu Malaterre 
Assigned ToPhilip Lowman 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in VersionCMake 2.8.9 
Summary0009861: find_package(Boost 1.40 REQUIRED) find_package(Boost 1.41 REQUIRED)
DescriptionThe 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)

TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0031173)
Philip Lowman (developer)
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 [^]

 Issue History
Date Modified Username Field Change
2009-11-07 09:30 Mathieu Malaterre New Issue
2010-12-14 16:11 David Cole Assigned To => Philip Lowman
2010-12-14 16:11 David Cole Status new => assigned
2012-10-04 01:43 Philip Lowman Note Added: 0031173
2012-10-04 01:43 Philip Lowman Status assigned => closed
2012-10-04 01:43 Philip Lowman Resolution open => fixed
2012-10-04 01:43 Philip Lowman Fixed in Version => CMake 2.8.9


Copyright © 2000 - 2018 MantisBT Team