Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check ASAN support when
ENABLE_ASAN=ON
.
We check if the compiler has asan support when the option is enabled. If it does not, then we stop compiling with the proper message. To test this, we use `gcc (GCC) 4.4.7` (no asan support) and `gcc (GCC) 9.1.0` (asan is supported). Call cmake like this: `cmake .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_ASAN=On` and `CXX=g++-4.4 cmake .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_ASAN=On` we then check that it fails for the older version and it works for the newer gcc, like expected. - Fix #409.
- Loading branch information