diff options
author | ZyX <kp-pav@yandex.ru> | 2017-05-08 18:42:57 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-05-08 18:42:57 +0300 |
commit | db1155f71393db3265cca0b71f89292f132a2347 (patch) | |
tree | 64877cccefc8264a40c59e7a78efe43b57a4b8d9 /src | |
parent | 09f849b60000c2d401d82f2b2fb2badde5583658 (diff) | |
download | rneovim-db1155f71393db3265cca0b71f89292f132a2347.tar.gz rneovim-db1155f71393db3265cca0b71f89292f132a2347.tar.bz2 rneovim-db1155f71393db3265cca0b71f89292f132a2347.zip |
cmake: Workaround CMake not supporting INCLUDE_DIRECTORIES target prop
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index 386048c781..23ec74fe5b 100644 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -340,6 +340,15 @@ endif() set(NVIM_EXEC_LINK_LIBRARIES ${NVIM_LINK_LIBRARIES}) set(NVIM_TEST_LINK_LIBRARIES ${NVIM_LINK_LIBRARIES}) +if(CMAKE_VERSION VERSION_LESS "2.8.8") + if(PREFER_LUAJIT) + include_directories(${LUAJIT_INCLUDE_DIRS}) + else() + message(FATAL_ERROR + "Must support INCLUDE_DIRECTORIES target property to build") + endif() +endif() + if(PREFER_LUAJIT) list(APPEND NVIM_EXEC_LINK_LIBRARIES ${LUAJIT_LIBRARIES}) else() |