[CMake] find_library and mac os x SDKs
    Simmons, Aaron 
    asimmons at rosettastone.com
       
    Fri Mar 26 19:03:21 EDT 2010
    
    
  
> 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
    
    
More information about the CMake
mailing list