On 22/10/2019 21:51, Kent Williams wrote:
find_package(ICU REQUIRED)
It reports failure to find ICU, and I can't work out what I'm supposed
to do:
CMake Error at
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137
(message):
Failed to find all ICU components (missing: ICU_LIBRARY) (found
version
"60.2")
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378
(_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindICU.cmake:317
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:3 (find_package)
Any suggestions?
Hi Kent,
You need to specify the ICU libraries you want to link with as
COMPONENTS. E.g.
find_package(ICU REQUIRED COMPONENTS data i18n io tu)
If you don't specify any components, then it won't find any libraries at
all and that will cause the check to fail which caused the above error.
Regards,
Roger
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake