From 058f98a63658dc1a2579826ba167fd61bed1e21f Mon Sep 17 00:00:00 2001 From: sanine Date: Fri, 4 Mar 2022 10:47:15 -0600 Subject: add assimp submodule --- .../contrib/draco/cmake/sanitizers.cmake | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/mesh/assimp-master/contrib/draco/cmake/sanitizers.cmake (limited to 'src/mesh/assimp-master/contrib/draco/cmake/sanitizers.cmake') diff --git a/src/mesh/assimp-master/contrib/draco/cmake/sanitizers.cmake b/src/mesh/assimp-master/contrib/draco/cmake/sanitizers.cmake new file mode 100644 index 0000000..e720bc0 --- /dev/null +++ b/src/mesh/assimp-master/contrib/draco/cmake/sanitizers.cmake @@ -0,0 +1,19 @@ +if(DRACO_CMAKE_SANITIZERS_CMAKE_) + return() +endif() +set(DRACO_CMAKE_SANITIZERS_CMAKE_ 1) + +if(MSVC OR NOT SANITIZE) + return() +endif() + +include("${draco_root}/cmake/compiler_flags.cmake") + +string(TOLOWER ${SANITIZE} SANITIZE) + +# Require the sanitizer requested. +require_linker_flag("-fsanitize=${SANITIZE}") +require_compiler_flag("-fsanitize=${SANITIZE}" YES) + +# Make callstacks accurate. +require_compiler_flag("-fno-omit-frame-pointer -fno-optimize-sibling-calls" YES) -- cgit v1.2.1