optimad / bitpit

Open source library for scientific HPC
http://optimad.github.io/bitpit/
GNU Lesser General Public License v3.0
117 stars 33 forks source link

cmake: activate address sanitizer for MSVC compiler #316

Open roccoarpa opened 2 years ago

roccoarpa commented 2 years ago

Adding compliant option to activate address sanitizer also with the MSVC compiler. The only difference with respect to the current solution in main CMakeLists.txt should be to use the compiler flag /fsanitize instead of gnu/LLVM style --fsanitize

More information here https://docs.microsoft.com/en-us/cpp/sanitizers/asan?view=msvc-170