[cmake-developers] [CMake 0015412]: find_dependency macro does not check for <UPPERCASED_NAME>_FOUND
Mantis Bug Tracker
mantis at public.kitware.com
Fri Feb 20 07:53:03 EST 2015
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
======================================================================
More information about the cmake-developers
mailing list