forked from pfqgauxfb/code-analysis
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
878 B
22 lines
878 B
file(GLOB hdrs "*.h")
|
|
file(GLOB srcs "*.cpp")
|
|
|
|
add_library(tinyxml2_objs OBJECT ${srcs} ${hdrs})
|
|
if (BUILD_CORE_DLL)
|
|
target_compile_definitions(tinyxml2_objs PRIVATE TINYXML2_EXPORT)
|
|
endif()
|
|
|
|
# TODO: needs to be fixed upstream
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
|
target_compile_options(tinyxml2_objs PRIVATE -Wno-suggest-attribute=format)
|
|
endif()
|
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
target_compile_options_safe(tinyxml2_objs -Wno-implicit-fallthrough)
|
|
target_compile_options_safe(tinyxml2_objs -Wno-suggest-destructor-override)
|
|
target_compile_options_safe(tinyxml2_objs -Wno-zero-as-null-pointer-constant)
|
|
target_compile_options_safe(tinyxml2_objs -Wno-format-nonliteral)
|
|
target_compile_options_safe(tinyxml2_objs -Wno-old-style-cast)
|
|
target_compile_options_safe(tinyxml2_objs -Wno-inconsistent-missing-destructor-override)
|
|
endif()
|
|
|