make the ICU CMake module check for icuuc library too

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2016-07-23 22:46:34 +00:00
parent cb1bad0791
commit d7e4632ed4

View file

@ -39,7 +39,21 @@ find_library(ICU_LIBRARIES
${LIB_INSTALL_DIR}
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ICU DEFAULT_MSG ICU_INCLUDES ICU_LIBRARIES)
find_library(ICUUC_LIBRARIES
icuuc
HINTS
$ENV{ICUDIR}/lib
${PC_ICU_LIBDIR}
/usr/lib
/usr/local/lib
${LIB_INSTALL_DIR}
)
mark_as_advanced(ICU_INCLUDES ICU_LIBRARIES)
if(ICU_LIBRARIES AND ICUUC_LIBRARIES)
set(ICU_LIBRARIES ${ICU_LIBRARIES} ${ICUUC_LIBRARIES})
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ICU DEFAULT_MSG ICU_INCLUDES ICU_LIBRARIES ICUUC_LIBRARIES)
mark_as_advanced(ICU_INCLUDES ICU_LIBRARIES ICUUC_LIBRARIES)