aboutsummaryrefslogtreecommitdiff
path: root/test
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 /test
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 'test')
-rw-r--r--test/includes/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/includes/CMakeLists.txt b/test/includes/CMakeLists.txt
index 4d7e962fbd..b4da4c0611 100644
--- a/test/includes/CMakeLists.txt
+++ b/test/includes/CMakeLists.txt
@@ -16,7 +16,7 @@ endforeach()
foreach(hfile ${PRE_HEADERS})
string(REGEX REPLACE ^pre/ post/ post_hfile ${hfile})
- get_filename_component(hdir ${CMAKE_CURRENT_BINARY_DIR}/${post_hfile} PATH)
+ get_filename_component(hdir ${CMAKE_CURRENT_BINARY_DIR}/${post_hfile} DIRECTORY)
file(MAKE_DIRECTORY ${hdir})
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${post_hfile}