stop building the library with profiling if the executable isn't built with profiling