From 130b5c9ed930bff957bc26921aa0a500e3df775d Mon Sep 17 00:00:00 2001 From: Fredrik Appelros Date: Mon, 7 Jan 2019 13:45:40 +0100 Subject: [PATCH] Filter out Linux tests The breakpad library itself does not depend on any test frameworks but will fail to build on Linux as it will attempt to build some of the tests for that platform. Fix the file filter regex to exclude all test files to avoid this. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 18af55919..9601d627e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -206,7 +206,7 @@ else() endif() file(GLOB LIBBREAKPAD_COMMON_SOURCES src/common/*.cc src/common/*.c src/client/*.cc) list(APPEND LIBBREAKPAD_CLIENT_SOURCES ${LIBBREAKPAD_COMMON_SOURCES}) -list(FILTER LIBBREAKPAD_CLIENT_SOURCES EXCLUDE REGEX "/tests|/unittests|_unittest") +list(FILTER LIBBREAKPAD_CLIENT_SOURCES EXCLUDE REGEX "/tests|/unittests|_test.cc$|_unittest.cc$") if(WIN32) list(FILTER LIBBREAKPAD_CLIENT_SOURCES EXCLUDE REGEX "language.cc|path_helper.cc|stabs_to_module.cc|stabs_reader.cc|minidump_file_writer.cc") endif()