Probably not working because the 10.4u SDK is not is any "standard" location like /Library/Frameworks or /System/library/Frameworks. You may have to add the additional argument to add another search path.
___________________________________________________________
Mike Jackson                      www.bluequartz.net
Principal Software Engineer       [email protected]
BlueQuartz Software               Dayton, Ohio


On Mar 26, 2010, at 3:29 PM, Simmons, Aaron wrote:

Actually, it’s a framework. The docs say find_library will work with frameworks (which are also folders). E.g., find_library(carbon Carbon) will work.


From: David Cole [mailto:[email protected]]
Sent: Friday, March 26, 2010 13:15
To: Simmons, Aaron
Cc: [email protected]
Subject: Re: [CMake] find_library and mac os x SDKs

find_library finds a library. MacOSX10.4u is a directory, not a library.

You just want:
if(EXISTS "/Developer/SDKs/MacOSX10.4u")


On Fri, Mar 26, 2010 at 2:08 PM, Simmons, Aaron <[email protected] > wrote: When compiled on Mac OS X, my project links against the 10.4 SDK. This SDK is often not installed by default on newer systems (10.6, for example). I would like to put in a check for whether the SDK is present before compiling (otherwise the developer gets all kinds of hard-to-understand compile errors).

I'm trying to use find_library like this:
      find_library(sdk MacOSX10.4u PATHS /Developer/SDKs)
      message("sdk= ${sdk}")
but the result is
      sdk= sdk-NOTFOUND
even on a system where the 10.4 sdk is present.

What am I missing?


Thanks,
aaron
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to