mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 12:45:17 -07:00
fix: deduplicate gen_cflags
Since many of the targets have common include paths, `gen_cflags` accumulates a lot of duplicate flags.
This commit is contained in:
parent
74b2f6c3d9
commit
118fd8367c
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user