Ticket #32528: patch-modules_highgui_CMakeLists.txt.diff

File patch-modules_highgui_CMakeLists.txt.diff, 526 bytes (added by marin.saric@…, 13 years ago)
  • modules/highgui/CMakeLists.txt

    old new  
    346346endif()
    347347
    348348if(APPLE)
    349     target_link_libraries(${the_target} "-lbz2 -framework Cocoa -framework QuartzCore")
     349    FIND_LIBRARY(BZ2_LIBRARY NAMES bz2 REQUIRED)
     350    target_link_libraries(${the_target} ${BZ2_LIBRARY} "-framework Cocoa -framework QuartzCore")
    350351    if(WITH_CARBON)
    351352        target_link_libraries(${the_target} "-framework Carbon")
    352353    endif()