From e24aa650fe629ff61d832d1c815ed74115d9659c Mon Sep 17 00:00:00 2001 From: p620 Date: Sat, 10 Oct 2020 21:25:45 +0300 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index edd52f59..939df2be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -240,7 +240,7 @@ COLLECT_FILES(true headers_to_moc src/noggit ".h;.hpp") FOREACH(file IN LISTS headers_to_moc) SET(file_full ${file}) STRING(PREPEND file_full ${PROJECT_SOURCE_DIR}/) - FILE(STRINGS ${file_full} contents REGEX "Q_OBJECT[\t ]*") + FILE(STRINGS ${file_full} contents NEWLINE_CONSUME REGEX "Q_OBJECT[\t ;]*\n") IF("${contents}" STREQUAL "") LIST(REMOVE_ITEM headers_to_moc ${file})