2020-11-16 09:11:08 +01:00
|
|
|
file(GLOB hdrs "*.h")
|
|
|
|
file(GLOB srcs "*.cpp")
|
|
|
|
|
|
|
|
add_library(tinyxml2_objs OBJECT ${srcs} ${hdrs})
|
|
|
|
|
2021-04-25 12:52:09 +02:00
|
|
|
# TODO: needs to be fixed upstream
|
2020-11-16 09:11:08 +01:00
|
|
|
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
|
|
|
target_compile_options(tinyxml2_objs PRIVATE -Wno-suggest-attribute=format)
|
|
|
|
endif()
|
|
|
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
2021-04-25 12:52:09 +02:00
|
|
|
target_compile_options_safe(tinyxml2_objs -Wno-extra-semi-stmt)
|
|
|
|
target_compile_options_safe(tinyxml2_objs -Wno-implicit-fallthrough)
|
2020-11-16 09:11:08 +01:00
|
|
|
endif()
|
|
|
|
|