Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

findtiff initial

Mustafa Öksüzd42fc8595753
diff --git a/toonz/cmake/FindTIFF.cmake b/toonz/cmake/FindTIFF.cmake
index 425272568..ff5ec5129 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