|
|
@ -16,7 +16,14 @@ ENDIF (ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
|
|
|
|
|
|
|
|
|
|
|
|
FIND_PATH(ICONV_INCLUDE_DIR iconv.h HINTS /sw/include/ PATHS /opt/local)
|
|
|
|
FIND_PATH(ICONV_INCLUDE_DIR iconv.h HINTS /sw/include/ PATHS /opt/local)
|
|
|
|
|
|
|
|
|
|
|
|
FIND_LIBRARY(ICONV_LIBRARIES NAMES iconv libiconv c PATHS /opt/local)
|
|
|
|
FIND_LIBRARY(ICONV_LIBRARIES_RELEASE NAMES iconv libiconv c PATHS /opt/local)
|
|
|
|
|
|
|
|
FIND_LIBRARY(ICONV_LIBRARIES_DEBUG NAMES iconvd libiconvd c PATHS /opt/local)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IF (ICONV_LIBRARIES_RELEASE AND ICONV_LIBRARIES_DEBUG)
|
|
|
|
|
|
|
|
SET(ICONV_LIBRARIES optimized ${ICONV_LIBRARIES_RELEASE} debug ${ICONV_LIBRARIES_DEBUG})
|
|
|
|
|
|
|
|
ELSE()
|
|
|
|
|
|
|
|
SET(ICONV_LIBRARIES ${ICONV_LIBRARIES_RELEASE})
|
|
|
|
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
IF(ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
|
|
|
|
IF(ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
|
|
|
|
SET(ICONV_FOUND TRUE)
|
|
|
|
SET(ICONV_FOUND TRUE)
|
|
|
@ -60,5 +67,6 @@ ENDIF()
|
|
|
|
MARK_AS_ADVANCED(
|
|
|
|
MARK_AS_ADVANCED(
|
|
|
|
ICONV_INCLUDE_DIR
|
|
|
|
ICONV_INCLUDE_DIR
|
|
|
|
ICONV_LIBRARIES
|
|
|
|
ICONV_LIBRARIES
|
|
|
|
|
|
|
|
ICONV_LIBRARIES_DEBUG
|
|
|
|
ICONV_SECOND_ARGUMENT_IS_CONST
|
|
|
|
ICONV_SECOND_ARGUMENT_IS_CONST
|
|
|
|
)
|
|
|
|
)
|
|
|
|