On Sun, Oct 04, 2015 at 16:47:40 +0200, Stephen Kelly wrote: > The existing CMake feature deals with compilation, but does not deal with > linking.
A generic target_link_options() is necessary for other things as well, such as: * -fsanitize=address needs to be passed to the linker to add -lasan (similar for other sanitizers); * -pg -ftest-coverage -fprofile-arcs needs to be passed to the linker for adding profiling information. --Ben -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers