[CMake] (no subject)

Mike Jackson mike.jackson at bluequartz.net
Thu Aug 13 10:39:29 EDT 2009


On Thu, Aug 13, 2009 at 10:34 AM, Calder Coalson<ccoal.mail at gmail.com> wrote:
>> I have been torturing myself over the following short bit of code all
>> day to no avail, so I'm sending out an email to this list in the hopes
>> that someone can catch whatever stupid mistake I'm making.  The code,
>> which is supposed to find two dependencies for a project is run using
>> find_package(MacDeps) from my main script.
>>
>> set(CMAKE_FIND_FRAMEWORK
>>       /Library/Frameworks
>>       /System/Library/Frameworks
>>       ~/Library/Frameworks
>> )
>
> This is invalid. Allowed values for CMAKE_FIND_FRAMEWORK are FIRST,
> LAST, ONLY and NEVER.
> See http://cmake.org/cmake/help/cmake2.6docs.html#command
> :find_library
>
> So what I SHOULD have been using was CMAKE_SYSTEM_FRAMEWORK_PATH.  DOH!
>  Sorry for the bother but thanks for the help.

If your frameworks are located in the standard locations then you
should NOT have to set ANYTHING. Just use the find_library() command
as usual. If you install your frameworks in other locations then you
are going to have to provide those locations to cmake.

Mike Jackson


More information about the CMake mailing list