diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-06-22 20:06:15 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-08-03 09:52:05 +0200 |
commit | 6e2c6114f991b3b61887fd9d1b442623b4b03882 (patch) | |
tree | c8ac2b7d7a19ea58b11ed6fec7952328ab168ac4 /cmake/InstallHelpers.cmake | |
parent | cc1ceebf8f13aed1ec0cbe0ff1ad7b2d8a6f10be (diff) | |
download | rneovim-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.cmake | 2 |
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) |