[cmake-developers] [CMake 0013755]: find_package_handle_standard_args(XX DEFAULT_MSG XX_FOUND) always succeeds

Mantis Bug Tracker mantis at public.kitware.com
Wed Nov 28 17:20:17 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=13755 
====================================================================== 
Reported By:                Nick Hutchinson
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13755
Category:                   Modules
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-11-29 11:20 NZDT
Last Modified:              2012-11-29 11:20 NZDT
====================================================================== 
Summary:                    find_package_handle_standard_args(XX DEFAULT_MSG
XX_FOUND) always succeeds
Description: 
The following CMakeList.txt file always succeeds with "--Found XX:  TRUE". It
ought not to; XX_FOUND has not been declared anywhere. I would expect
find_package_handle_standard_args() to report that XX could not be found, and to
set XX_FOUND to false.

~~~~
cmake_minimum_required(VERSION 2.8.8)
include (FindPackageHandleStandardArgs)
find_package_handle_standard_args(XX DEFAULT_MSG XX_FOUND)
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-11-29 11:20 Nick HutchinsonNew Issue                                    
======================================================================




More information about the cmake-developers mailing list