Skip to content

Commit 3160214

Browse files
committed
Applied patch
1 parent caa4b59 commit 3160214

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ if (Qt5Widgets_FOUND AND Qt5Test_FOUND)
127127

128128
add_executable(notebook ${gui_main} ${gui_src})
129129
if(UNIX AND NOT APPLE AND CMAKE_COMPILER_IS_GNUCXX)
130-
target_link_libraries(notebook interpreter Qt5::Widgets pthread)
130+
target_link_libraries(notebook interpreter Qt5::Widgets pthread gcov)
131131
else(UNIX AND NOT APPLE AND CMAKE_COMPILER_IS_GNUCXX)
132132
target_link_libraries(notebook interpreter Qt5::Widgets)
133133
endif()
134134

135135
add_executable(notebook_test ${gui_test_src} ${gui_src})
136136
if(UNIX AND NOT APPLE AND CMAKE_COMPILER_IS_GNUCXX)
137-
target_link_libraries(notebook_test interpreter Qt5::Widgets Qt5::Test pthread)
137+
target_link_libraries(notebook_test interpreter Qt5::Widgets Qt5::Test pthread gcov)
138138
else(UNIX AND NOT APPLE AND CMAKE_COMPILER_IS_GNUCXX)
139139
target_link_libraries(notebook_test interpreter Qt5::Widgets Qt5::Test)
140140
endif()

m2_cmake_gcov_patch.diff

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index 473b737..f18d415 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -127,14 +127,14 @@ if (Qt5Widgets_FOUND AND Qt5Test_FOUND)
6+
7+
add_executable(notebook ${gui_main} ${gui_src})
8+
if(UNIX AND NOT APPLE AND CMAKE_COMPILER_IS_GNUCXX)
9+
- target_link_libraries(notebook interpreter Qt5::Widgets pthread)
10+
+ target_link_libraries(notebook interpreter Qt5::Widgets pthread gcov)
11+
else(UNIX AND NOT APPLE AND CMAKE_COMPILER_IS_GNUCXX)
12+
target_link_libraries(notebook interpreter Qt5::Widgets)
13+
endif()
14+
15+
add_executable(notebook_test ${gui_test_src} ${gui_src})
16+
if(UNIX AND NOT APPLE AND CMAKE_COMPILER_IS_GNUCXX)
17+
- target_link_libraries(notebook_test interpreter Qt5::Widgets Qt5::Test pthread)
18+
+ target_link_libraries(notebook_test interpreter Qt5::Widgets Qt5::Test pthread gcov)
19+
else(UNIX AND NOT APPLE AND CMAKE_COMPILER_IS_GNUCXX)
20+
target_link_libraries(notebook_test interpreter Qt5::Widgets Qt5::Test)
21+
endif()

0 commit comments

Comments
 (0)