summaryrefslogtreecommitdiff
blob: c9eaa5164190e3bf47b6bacac3d92d420774d796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- a/src/lib/synergy/KeyMap.h	2016-11-09 13:21:52.000000000 -0600
+++ b/src/lib/synergy/KeyMap.h	2016-11-09 13:22:17.484457330 -0600
@@ -24,7 +24,9 @@
 #include "common/stdset.h"
 #include "common/stdvector.h"
 
+#if WITH_GENTOO_TEST
 #include "gtest/gtest_prod.h"
+#endif
 
 namespace synergy {
 
@@ -327,6 +329,7 @@
 	//@}
 
 
+#if WITH_GENTOO_TEST
 private:
 	FRIEND_TEST(KeyMapTests,
 				findBestKey_requiredDown_matchExactFirstItem);
@@ -341,6 +344,7 @@
 	FRIEND_TEST(KeyMapTests,
 				findBestKey_onlyOneRequiredDown_matchTwoRequiredChangesItem);
 	FRIEND_TEST(KeyMapTests, findBestKey_noRequiredDown_cannotMatch);
+#endif
 
 private:
 	//! Ways to synthesize a key
--- a/src/CMakeLists.txt	2016-11-09 13:31:26.000000000 -0600
+++ b/src/CMakeLists.txt	2016-11-09 13:40:08.189421727 -0600
@@ -50,6 +50,6 @@
 add_subdirectory(cmd)
 add_subdirectory(micro)
 
-if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "IRIX")
+if (${WITH_GENTOO_TEST})
 	add_subdirectory(test)
 endif()