mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
make the ICU CMake module check for icuuc library too
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
cb1bad0791
commit
d7e4632ed4
1 changed files with 17 additions and 3 deletions
|
@ -39,7 +39,21 @@ find_library(ICU_LIBRARIES
|
||||||
${LIB_INSTALL_DIR}
|
${LIB_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
find_library(ICUUC_LIBRARIES
|
||||||
find_package_handle_standard_args(ICU DEFAULT_MSG ICU_INCLUDES ICU_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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue