diff options
author | James McCoy <jamessan@jamessan.com> | 2024-03-10 20:02:32 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2024-03-10 20:02:32 -0400 |
commit | 118fd8367c3953abb43800a7c1ea0bcc0221e9cd (patch) | |
tree | ab601d70408bbf563897c233c6daf30a9f5a928c | |
parent | 74b2f6c3d95647ad07f56bf9ed6865a8db3dfb97 (diff) | |
download | rneovim-118fd8367c3953abb43800a7c1ea0bcc0221e9cd.tar.gz rneovim-118fd8367c3953abb43800a7c1ea0bcc0221e9cd.tar.bz2 rneovim-118fd8367c3953abb43800a7c1ea0bcc0221e9cd.zip |
fix: deduplicate gen_cflags
Since many of the targets have common include paths, `gen_cflags`
accumulates a lot of duplicate flags.
-rw-r--r-- | src/nvim/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index 7aa7904286..7e22203aba 100644 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -469,6 +469,8 @@ foreach(target ${targets}) endif() endforeach() +list(REMOVE_DUPLICATES gen_cflags) + if(APPLE AND CMAKE_OSX_SYSROOT) list(APPEND gen_cflags "-isysroot" "${CMAKE_OSX_SYSROOT}") endif() |