https://github.com/halide/Halide
Raw File
Tip revision: 45c33211bfbbb8927a002ef5f98739a5ee738a29 authored by Dillon Sharlet on 06 May 2021, 22:11:19 UTC
Merge branch 'dsharletg/runtime-size' of github.com:halide/Halide into dsharletg/runtime-size
Tip revision: 45c3321
CMakeLists.txt
if (APPLE)
    # This changes how find_xxx() commands work; the default is to find frameworks before
    # standard libraries or headers, but this can be a problem on systems that have Mono
    # installed, as it has a framework with the libjpeg and libpng  headers present -- so
    # CMake finds the headers from Mono but the libraries from Homebrew, and hilarity ensues.
    # Setting this to "last" means we always try the standard libraries before the frameworks.
    set(CMAKE_FIND_FRAMEWORK LAST)
endif ()

find_package(PNG)
if (TARGET PNG::PNG)
    set_target_properties(PNG::PNG PROPERTIES IMPORTED_GLOBAL TRUE)
endif ()
back to top