From d42fc8595753babfdc05a589cff25b8ee53b6933 Mon Sep 17 00:00:00 2001 From: Mustafa Öksüz Date: Aug 31 2022 14:10:14 +0000 Subject: findtiff initial --- diff --git a/toonz/cmake/FindTIFF.cmake b/toonz/cmake/FindTIFF.cmake index 4252725..ff5ec51 100644 --- a/toonz/cmake/FindTIFF.cmake +++ b/toonz/cmake/FindTIFF.cmake @@ -1,16 +1,12 @@ -#we should use brew configuration # looks for libtiff(4.0.3 modified) -set(BREW /usr/local/opt) -set(TIFF_INCLUDE_DIR ${BREW}/libtiff/include) find_path( TIFF_INCLUDE_DIR NAMES tiffio.h HINTS - ${BREW} + ${SDKROOT} PATH_SUFFIXES - # tiff-4.0.3/libtiff/ - /libtiff/include + tiff-4.0.3/libtiff/ # if mono or another framework with a tif library # is installed, ignore it. if(BUILD_ENV_APPLE) @@ -20,15 +16,14 @@ if(BUILD_ENV_APPLE) endif() ) - find_library( TIFF_LIBRARY NAMES libtiff.a HINTS - ${BREW} + ${SDKROOT} PATH_SUFFIXES - /libtiff/lib + tiff-4.0.3/libtiff/.libs NO_DEFAULT_PATH ) @@ -48,4 +43,4 @@ endif() mark_as_advanced( TIFF_LIBRARY TIFF_INCLUDE_DIR -) +) \ No newline at end of file