<div class="gmail_quote">On Thu, Aug 13, 2009 at 1:18 AM, Michael Wild <span dir="ltr">&lt;<a href="mailto:themiwi@gmail.com">themiwi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
On 13. Aug, 2009, at 1:14, Calder Coalson wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have been torturing myself over the following short bit of code all<br>
day to no avail, so I&#39;m sending out an email to this list in the hopes<br>
that someone can catch whatever stupid mistake I&#39;m making.  The code,<br>
which is supposed to find two dependencies for a project is run using<br>
find_package(MacDeps) from my main script.<br>
<br>
set(CMAKE_FIND_FRAMEWORK<br>
        /Library/Frameworks<br>
        /System/Library/Frameworks<br>
        ~/Library/Frameworks<br>
)<br>
</blockquote>
<br></div>
This is invalid. Allowed values for CMAKE_FIND_FRAMEWORK are FIRST, LAST, ONLY and NEVER. See <a href="http://cmake.org/cmake/help/cmake2.6docs.html#command" target="_blank">http://cmake.org/cmake/help/cmake2.6docs.html#command</a>:find_library<br>
<font color="#888888">
</font></blockquote></div><br><br>So just get rid of that set CMAKE_FIND_FRAMEWORK. The find_library should be able to find frameworks in the default locations without any special help -- it would only need special help if there were conflicting non-framework versions of the same libraries in other default library locations...<br>
<br><br>HTH,<br>David<br><br>