diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-06-06 01:52:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-06 01:52:29 +0200 |
commit | 36ac80d5dd58e726a89c7108051e29de500a2f77 (patch) | |
tree | e7d53fa54da16a74df3b039d96fcd605040f4f77 /cmake/FindLibIntl.cmake | |
parent | f795c3ce7cfec5dec5b4389ee926b9c8f0cacdf8 (diff) | |
parent | ec29eeef4331157078bd34fac4b2b43a63a39caf (diff) | |
download | rneovim-36ac80d5dd58e726a89c7108051e29de500a2f77.tar.gz rneovim-36ac80d5dd58e726a89c7108051e29de500a2f77.tar.bz2 rneovim-36ac80d5dd58e726a89c7108051e29de500a2f77.zip |
Merge #8464 from justinmk/cmake-findpkg-required
Diffstat (limited to 'cmake/FindLibIntl.cmake')
-rw-r--r-- | cmake/FindLibIntl.cmake | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/cmake/FindLibIntl.cmake b/cmake/FindLibIntl.cmake index f8442566a9..738ae39983 100644 --- a/cmake/FindLibIntl.cmake +++ b/cmake/FindLibIntl.cmake @@ -34,9 +34,8 @@ if (LibIntl_INCLUDE_DIR) set(CMAKE_REQUIRED_INCLUDES "${LibIntl_INCLUDE_DIR}") endif() -# This is required because some operating systems don't have a separate -# libintl--it is built into glibc. So we only need to specify the library -# if one was actually found. +# On some systems (linux+glibc) libintl is passively available. +# So only specify the library if one was found. if (LibIntl_LIBRARY) set(CMAKE_REQUIRED_LIBRARIES "${LibIntl_LIBRARY}") endif() @@ -53,6 +52,13 @@ int main(int argc, char** argv) { }" HAVE_WORKING_LIBINTL) if (HAVE_WORKING_LIBINTL) + # On some systems (linux+glibc) libintl is passively available. + # If HAVE_WORKING_LIBINTL then we consider the requirement satisfied. + # Unset REQUIRED so that libfind_process(LibIntl) can proceed. + if(LibIntl_FIND_REQUIRED) + unset(LibIntl_FIND_REQUIRED) + endif() + check_variable_exists(_nl_msg_cat_cntr HAVE_NL_MSG_CAT_CNTR) endif() |