[CMake] Why does CMAKE_FIND_FRAMEWORK always default to FIRST ignoring command line definitions?

Rolf Eike Beer eike at sf-mail.de
Thu May 3 02:45:28 EDT 2012


Am Mittwoch, 2. Mai 2012, 14:48:23 schrieb Charlie Sharpsteen:
> This is observed OS X 10.6.8, XCode 4.2.6 and 10.7.3, XCode 4.3 with CMake
> 2.8.8. Say I have the following CMakeLists.txt:
> 
>     PROJECT(find_tst)
>     CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
> 
>     MESSAGE(STATUS "Value of CMAKE_FIND_FRAMEWORK: ${CMAKE_FIND_FRAMEWORK}")
> 
> 
> Why does CMAKE_FIND_FRAMEWORK end up with a value of FIRST even though I
> pass -DCMAKE_FIND_FRAMEWORK=LAST when configuring?
> 
> grendel:build sharpie$ cmake .. -DCMAKE_FIND_FRAMEWORK=LAST

Because those value is set in the Darwin platform file 
(Modules/Platform/Darwin.cmake) which is taken into account by the PROJECT() 
call. So this is just overridden.

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120503/a5ae4ec7/attachment.pgp>


More information about the CMake mailing list