> Is there a problem with just using "if(EXISTS" like I suggested in my first
> reply?
That's what I ended up doing and it works:
macro( set_osx_sysroot)
if (NOT EXISTS ${ARGV0})
message(FATAL_ERROR "Could not find ${ARGV0}.")
endif (NOT EXISTS ${ARGV0})
set( CMAKE_OSX_SYSROOT ${ARGV0} )
endmacro( set_osx_sysroot )
I guess find_library was just the wrong tool for the job. Thanks for the tip.
:)
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