Ticket #32302: patch-CMake_Packages_FindOIS.cmake.diff

File patch-CMake_Packages_FindOIS.cmake.diff, 528 bytes (added by marin.saric@…, 13 years ago)
  • CMake/Packages/FindOIS.cmake

    old new  
    8080
    8181findpkg_finish(OIS)
    8282
     83if (APPLE)
     84  # The MacOS X version of OIS depends on IOKit, Carbon and Cocoa
     85  list(APPEND OIS_LIBRARIES
     86    "-framework IOKit"  # CMake prepends -l if quotes are not present
     87    "-framework Carbon"
     88    "-framework Cocoa")
     89endif()
     90
    8391# add parent of OIS folder to support OIS/OIS.h
    8492add_parent_dir(OIS_INCLUDE_DIRS OIS_INCLUDE_DIR)
    8593