The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15412 
====================================================================== 
Reported By:                Kiron
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15412
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-02-20 07:53 EST
Last Modified:              2015-02-20 07:53 EST
====================================================================== 
Summary:                    find_dependency macro does not check for
<UPPERCASED_NAME>_FOUND
Description: 
The find_dependency  macro only checks for ${dep}_FOUND and not for the
alternative form <UPPERCASED_NAME>_FOUND.

Not <UPPERCASED_NAME>_FOUND considering means, that the find_dependency  macro
will not work with FindModules which use FIND_PACKAGE_HANDLE_STANDARD_ARGS and
do not set FOUND_VAR to ${CMAKE_FIND_PACKAGE_NAME}, since by default it will set
<UPPERCASED_NAME>_FOUND. Or other FindModules which just set
<UPPERCASED_NAME>_FOUND.

I also think in line 80 till 83 it should use unset instead of set.

[1]
http://www.cmake.org/gitweb?p=stage/cmake.git;a=blob;f=Modules/CMakeFindDependencyMacro.cmake;h=73efaae7cddc5915fb5e273decd7b703883b929d;hb=HEAD#l78
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-02-20 07:53 Kiron          New Issue                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

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

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to