aboutsummaryrefslogtreecommitdiff
path: root/cmake/InstallHelpers.cmake
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-06-22 20:06:15 +0200
committerDundar Goc <gocdundar@gmail.com>2022-08-03 09:52:05 +0200
commit6e2c6114f991b3b61887fd9d1b442623b4b03882 (patch)
treec8ac2b7d7a19ea58b11ed6fec7952328ab168ac4 /cmake/InstallHelpers.cmake
parentcc1ceebf8f13aed1ec0cbe0ff1ad7b2d8a6f10be (diff)
downloadrneovim-6e2c6114f991b3b61887fd9d1b442623b4b03882.tar.gz
rneovim-6e2c6114f991b3b61887fd9d1b442623b4b03882.tar.bz2
rneovim-6e2c6114f991b3b61887fd9d1b442623b4b03882.zip
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.
Diffstat (limited to 'cmake/InstallHelpers.cmake')
-rw-r--r--cmake/InstallHelpers.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/InstallHelpers.cmake b/cmake/InstallHelpers.cmake
index 9d997260cd..3786c4177f 100644
--- a/cmake/InstallHelpers.cmake
+++ b/cmake/InstallHelpers.cmake
@@ -45,7 +45,7 @@ function(create_install_dir_with_perms)
while(NOT EXISTS \$ENV{DESTDIR}\${_current_dir} AND NOT \${_prev_dir} STREQUAL \${_current_dir})
list(APPEND _parent_dirs \${_current_dir})
set(_prev_dir \${_current_dir})
- get_filename_component(_current_dir \${_current_dir} PATH)
+ get_filename_component(_current_dir \${_current_dir} DIRECTORY)
endwhile()
if(_parent_dirs)