summaryrefslogtreecommitdiff
path: root/comms/gammu/files/patch-CMakeLists.txt
blob: 0cedf56cc5f20be1730ca11e00cb23ea0a734610 (plain) (blame)
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
--- CMakeLists.txt.orig	2016-04-13 11:37:33 UTC
+++ CMakeLists.txt
@@ -117,7 +117,7 @@ check_symbol_exists (getpwnam "pwd.h" HA
 check_symbol_exists (getgrnam "grp.h" HAVE_GETGRNAM)
 check_symbol_exists (getpwuid "pwd.h" HAVE_GETPWUID)
 check_symbol_exists (getuid "unistd.h" HAVE_GETUID)
-check_symbol_exists (initgroups "grp.h" HAVE_INITGROUPS)
+check_symbol_exists (initgroups "unistd.h" HAVE_INITGROUPS)
 check_symbol_exists (setuid "unistd.h" HAVE_SETUID)
 check_symbol_exists (setgid "unistd.h" HAVE_SETGID)
 check_symbol_exists (SIGHUP "signal.h" HAVE_SIGHUP)
@@ -415,7 +415,6 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMP
     #
     # Warnings related flags
     #
-    MACRO_TUNE_COMPILER("-O2")
     MACRO_TUNE_COMPILER("-Wall")
     MACRO_TUNE_COMPILER("-Werror-implicit-function-declaration")
     MACRO_TUNE_COMPILER("-Wno-deprecated-declarations")
@@ -547,7 +546,6 @@ endif (BUILD_SHARED_LIBS)
 set (DOCS
     README.rst
     ChangeLog
-    COPYING
     )
 
 # OpenCellID API key