diff --git a/.gitignore b/.gitignore index 35b86ff82..e4304a437 100644 --- a/.gitignore +++ b/.gitignore @@ -80,7 +80,6 @@ htmlreport/.tox/ htmlreport/MANIFEST # Backup files and stuff from patches -*.orig *.rej *~ @@ -108,3 +107,4 @@ man/manual.tex # CLion .idea /.metadata/ +cmake-* diff --git a/externals/simplecpp/CMakeLists.txt b/externals/simplecpp/CMakeLists.txt index 929853614..4cdee50c0 100644 --- a/externals/simplecpp/CMakeLists.txt +++ b/externals/simplecpp/CMakeLists.txt @@ -3,7 +3,7 @@ file(GLOB srcs "*.cpp") add_library(simplecpp_objs OBJECT ${srcs} ${hdrs}) if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") - add_library(simplecpp_objs_sanitized OBJECT ${srcs} ${hdrs}) + add_library(simplecpp_objs_sanitized OBJECT EXCLUDE_FROM_ALL ${srcs} ${hdrs}) target_compile_options(simplecpp_objs_sanitized PRIVATE -fsanitize=address) endif() diff --git a/externals/tinyxml/CMakeLists.txt b/externals/tinyxml/CMakeLists.txt index a8b8f01de..31cbeb36e 100644 --- a/externals/tinyxml/CMakeLists.txt +++ b/externals/tinyxml/CMakeLists.txt @@ -7,6 +7,6 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU") target_compile_options(tinyxml_objs PRIVATE -Wno-suggest-attribute=format) endif() if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") - add_library(tinyxml_objs_sanitized OBJECT ${srcs} ${hdrs}) + add_library(tinyxml_objs_sanitized OBJECT EXCLUDE_FROM_ALL ${srcs} ${hdrs}) target_compile_options(tinyxml_objs_sanitized PRIVATE -fsanitize=address) endif() \ No newline at end of file diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 4d83dda71..aeeb00bf3 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -38,6 +38,6 @@ endif() add_library(lib_objs OBJECT ${srcs_lib} ${hdrs}) if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") - add_library(lib_objs_sanitized OBJECT ${srcs_lib} ${hdrs}) + add_library(lib_objs_sanitized OBJECT EXCLUDE_FROM_ALL ${srcs_lib} ${hdrs}) target_compile_options(lib_objs_sanitized PRIVATE -fsanitize=address) endif()