[cmake-developers] Disabling leaks check when using Address Sanitizer

Brad King brad.king at kitware.com
Fri Dec 16 07:55:59 EST 2016


On 12/16/2016 04:35 AM, Sylvain Joubert wrote:
> The issue is that CMake appends its own "detect_leak=1"
> 
> I see two possible fixes here:
> 1- Since "detect_leaks=1" is the default, we can simply not append
> it to the options and make sure the user options are last

It looks like this was added in commit 44726714322ca0b75628e234229f4583a480d7ec
when support for asan was first added.  Bill, do you recall why?

> If my analysis is correct I can make a MR. Which fixes would you prefer?

A MR would be fine, thanks!

-Brad



More information about the cmake-developers mailing list