FindICU: Search for packaged data files
The files Makefile.inc
and pkgdata.inc
are installed by ICU to <libdir>[/<arch>]/icu[/<icu-version>]
. These are required by ICU tools like pkgdata
, and so are needed by other package build systems at build time, in addition to the libraries and executables already searched for.
Search for the files and create cache entries for them, as done for executables.
Setting ICU_DEBUG:BOOL=ON
and running find_package(ICU COMPONENTS uc data)
:
-- --------FindICU.cmake results debug--------
...
-- Makefile.inc data: /usr/lib/x86_64-linux-gnu/icu/57.1/Makefile.inc
-- pkgdata.inc data: /usr/lib/x86_64-linux-gnu/icu/57.1/pkgdata.inc
-- uc library found: ON
-- uc library: /usr/lib/x86_64-linux-gnu/libicuuc.so
-- data library found: ON
-- data library: /usr/lib/x86_64-linux-gnu/libicudata.so
-- ----------------
Projects needing these files may now use ${ICU_MAKEFILE_INC}
and ${ICU_PKGDATA_INC}
to use these files in their build processes.
Topic-rename: FindICU-data-vars
Edited by Brad King