We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80667ac commit 5f4e4d0Copy full SHA for 5f4e4d0
libs/EXTERNAL/libpugixml/CMakeLists.txt
@@ -19,7 +19,10 @@ set_target_properties(libpugixml PROPERTIES PREFIX "") #Avoid extra 'lib' prefix
19
set(PUGIXML_SUPPRESS_FLAGS -w)
20
target_compile_options(libpugixml PRIVATE ${PUGIXML_SUPPRESS_FLAGS})
21
22
-#Enable compact mode which reduces memory usage.
23
-target_compile_definitions(libpugixml PRIVATE PUGIXML_COMPACT)
+#Do not use compact mode with sanitize flags on as pugi structs are not alligned and causes errors.
+if(NOT VTR_ENABLE_SANITIZE)
24
+ #Enable compact mode which reduces memory usage.
25
+ target_compile_definitions(libpugixml PRIVATE PUGIXML_COMPACT)
26
+endif()
27
28
install(TARGETS libpugixml DESTINATION bin)
0 commit comments