From 6e2c6114f991b3b61887fd9d1b442623b4b03882 Mon Sep 17 00:00:00 2001 From: Dundar Goc Date: Wed, 22 Jun 2022 20:06:15 +0200 Subject: build: replace deprecated cmake features with their modern alternatives - Use DIRECTORY instead of PATH in get_filename_component - Use COMPILE_OPTIONS instead of COMPILE_FLAGS. COMPILE_FLAGS is treated as a single string while COMPILE_OPTIONS is a list, meaning that cmake will take care of any escaping and quoting automatically. --- runtime/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime') diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt index f656f1cbc3..e0a0b34d28 100644 --- a/runtime/CMakeLists.txt +++ b/runtime/CMakeLists.txt @@ -117,7 +117,7 @@ endif() globrecurse_wrapper(RUNTIME_PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR} *.awk *.sh *.bat) foreach(PROG ${RUNTIME_PROGRAMS}) - get_filename_component(BASEDIR ${PROG} PATH) + get_filename_component(BASEDIR ${PROG} DIRECTORY) install_helper(PROGRAMS ${PROG} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/nvim/runtime/${BASEDIR}) endforeach() @@ -126,7 +126,7 @@ globrecurse_wrapper(RUNTIME_FILES ${CMAKE_CURRENT_SOURCE_DIR} *.vim *.lua *.dict *.py *.rb *.ps *.spl *.tutor *.tutor.json) foreach(F ${RUNTIME_FILES}) - get_filename_component(BASEDIR ${F} PATH) + get_filename_component(BASEDIR ${F} DIRECTORY) install_helper(FILES ${F} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/nvim/runtime/${BASEDIR}) endforeach() -- cgit