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:
James McCoy 2024-03-10 20:02:32 -04:00
parent 74b2f6c3d9
commit 118fd8367c
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB

View File

@ -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()