[cmake-developers] [CMake 0013261]: Default value of CMAKE_FIND_FRAMEWORK can not be overridden from the command line

Mantis Bug Tracker mantis at public.kitware.com
Wed May 30 13:43:37 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13261 
====================================================================== 
Reported By:                Charlie Sharpsteen
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13261
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2012-05-30 13:43 EDT
Last Modified:              2012-05-30 13:43 EDT
====================================================================== 
Summary:                    Default value of CMAKE_FIND_FRAMEWORK can not be
overridden from the command line
Description: 
`CMAKE_FIND_FRAMEWORK` always has a value of `FIRST` even if a user passes an
argument such as `-DCMAKE_FIND_FRAMEWORK=LAST` when configuring a project. This
is due to an unguarded default in the platform file `Darwin.cmake` that always
overrides user input.

See the following thread on the mailing list for more details:

   
http://cmake.3232098.n2.nabble.com/Why-does-CMAKE-FIND-FRAMEWORK-always-default-to-FIRST-ignoring-command-line-definitions-tp7521759.html


Patch attached which adds guards to the default in `Darwin.cmake`. No changes in
the CMake testsuite were noticed after applying the patch.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-05-30 13:43 Charlie SharpsteenNew Issue                                    
2012-05-30 13:43 Charlie SharpsteenFile Added:
0001-Add-guards-to-CMAKE_FIND_FRAMEWORK-default.patch                    
======================================================================




More information about the cmake-developers mailing list