mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00: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:
		| @@ -469,6 +469,8 @@ foreach(target ${targets}) | |||||||
|   endif() |   endif() | ||||||
| endforeach() | endforeach() | ||||||
|  |  | ||||||
|  | list(REMOVE_DUPLICATES gen_cflags) | ||||||
|  |  | ||||||
| if(APPLE AND CMAKE_OSX_SYSROOT) | if(APPLE AND CMAKE_OSX_SYSROOT) | ||||||
|   list(APPEND gen_cflags "-isysroot" "${CMAKE_OSX_SYSROOT}") |   list(APPEND gen_cflags "-isysroot" "${CMAKE_OSX_SYSROOT}") | ||||||
| endif() | endif() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 James McCoy
					James McCoy