neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

FindUTF8proc.cmake (619B)


      1 find_path2(UTF8PROC_INCLUDE_DIR utf8proc.h)
      2 find_library2(UTF8PROC_LIBRARY NAMES utf8proc utf8proc_static)
      3 find_package_handle_standard_args(UTF8proc DEFAULT_MSG
      4  UTF8PROC_LIBRARY UTF8PROC_INCLUDE_DIR)
      5 mark_as_advanced(UTF8PROC_LIBRARY UTF8PROC_INCLUDE_DIR)
      6 
      7 add_library(utf8proc INTERFACE)
      8 target_include_directories(utf8proc SYSTEM BEFORE INTERFACE ${UTF8PROC_INCLUDE_DIR})
      9 target_link_libraries(utf8proc INTERFACE ${UTF8PROC_LIBRARY})
     10 
     11 #TODO(dundargoc): this is a hack that should ideally be hardcoded into the utf8proc project via configure_command
     12 target_compile_definitions(utf8proc INTERFACE "UTF8PROC_STATIC")