diff options
Diffstat (limited to 'build_files/cmake/platform/platform_apple.cmake')
-rw-r--r-- | build_files/cmake/platform/platform_apple.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build_files/cmake/platform/platform_apple.cmake b/build_files/cmake/platform/platform_apple.cmake index 020f8defdc0..b22adbc68d5 100644 --- a/build_files/cmake/platform/platform_apple.cmake +++ b/build_files/cmake/platform/platform_apple.cmake @@ -227,10 +227,15 @@ if(WITH_SDL) set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -framework ForceFeedback") endif() +# Use CMP0074 for our benefit. Stop CMake from searching libraries in one +# place and headers in another. +set(PNG_ROOT ${LIBDIR}/png) find_package(PNG REQUIRED) +set(JPEG_ROOT ${LIBDIR}/jpeg) find_package(JPEG REQUIRED) +set(TIFF_ROOT ${LIBDIR}/tiff) find_package(TIFF REQUIRED) if(WITH_BOOST) |