[trunk] make sure to build as universal build when OS is APPLE

This commit is contained in:
Mathieu Malaterre 2012-03-15 13:35:30 +00:00
parent 80076276e1
commit 813ba42cfc
1 changed files with 4 additions and 0 deletions

View File

@ -207,6 +207,10 @@ set(VERSION "\"4.0.1\"")
set(PACKAGE_VERSION ${VERSION}) set(PACKAGE_VERSION ${VERSION})
set(PACKAGE "\"tiff\"") set(PACKAGE "\"tiff\"")
# universal build ?
if(APPLE)
set(AC_APPLE_UNIVERSAL_BUILD 1)
endif()
if(UNIX) if(UNIX)
set(CMAKE_REQUIRED_LIBRARIES m) set(CMAKE_REQUIRED_LIBRARIES m)
set(HAVE_LIBM 1) set(HAVE_LIBM 1)