mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 12:45:17 -07:00
Only include libintl's include dir if libintl was found.
This prevents an error from CMake when libintl is not found. It's not a required library, so we must wrap the inclusion in a conditional. It was already done for the library.
This commit is contained in:
parent
d2e567a835
commit
fe226f5376
@ -44,7 +44,9 @@ endif(NOT CMAKE_USE_PTHREADS_INIT)
|
||||
check_library_exists(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME)
|
||||
|
||||
find_package(LibIntl)
|
||||
include_directories(${LibIntl_INCLUDE_DIR})
|
||||
if(LibIntl_FOUND)
|
||||
include_directories(${LibIntl_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
# Require libuv
|
||||
find_package(LibUV REQUIRED)
|
||||
|
Loading…
Reference in New Issue
Block a user