summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-05-18 03:03:50 -0400
committerMike Frysinger <vapier@gentoo.org>2016-05-18 03:03:50 -0400
commitc9a4a85f3805644e706d0dead02ebb2984458fb3 (patch)
tree02410240044c64b82499c96e730265c70acae650 /cmake
parent6e054c42cf9fa1dc7fc227b0b397ab3180f4a5db (diff)
downloadlibgd-c9a4a85f3805644e706d0dead02ebb2984458fb3.tar.gz
libimagequant: fix integration
The symbol was being set up in cmake but not on the autotools side. Clean this up to be like other external libraries. We need to pull in some openmp logic as it's not uncommon for the lib to be built with openmp support. When we test for it, we need to do so with openmp flags. Fixes #137.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindLIQ.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/modules/FindLIQ.cmake b/cmake/modules/FindLIQ.cmake
index 08713f5..bf17fcf 100644
--- a/cmake/modules/FindLIQ.cmake
+++ b/cmake/modules/FindLIQ.cmake
@@ -23,7 +23,7 @@ FIND_LIBRARY(LIQ_LIBRARY
IF (LIQ_LIBRARY AND LIQ_INCLUDE_DIR)
SET(LIQ_FOUND "YES")
SET(LIQ_LIBRARIES ${LIQ_LIBRARY})
- SET(HAVE_LIBIMAGEQUANT_H 1)
+ SET(HAVE_LIBIMAGEQUANT 1)
ENDIF (LIQ_LIBRARY AND LIQ_INCLUDE_DIR)
IF (LIQ_FOUND)
@@ -51,7 +51,7 @@ ELSE (LIQ_FOUND)
SET(LIQ_BUILD "YES")
SET(LIQ_LIBRARIES "${PROJECT_BINARY_DIR}/libimagequant/libimagequant.a")
SET(LIQ_INCLUDE_DIR "${PROJECT_BINARY_DIR}/libimagequant/")
- SET(HAVE_LIBIMAGEQUANT_H 1)
+ SET(HAVE_LIBIMAGEQUANT 1)
ENDIF(CMAKE_VERSION VERSION_GREATER "2.8.1")
ENDIF(NOT WIN32 OR CYGWIN OR MINGW)
ENDIF (LIQ_FOUND)