r23411 - gnucash/trunk - Cutecash: Adapt to compiler/linker flags that are needed on Ubuntu 13.10

Christian Stimming cstim at code.gnucash.org
Mon Nov 18 03:00:44 EST 2013


Author: cstim
Date: 2013-11-18 03:00:44 -0500 (Mon, 18 Nov 2013)
New Revision: 23411
Trac: http://svn.gnucash.org/trac/changeset/23411

Modified:
   gnucash/trunk/CMakeLists.txt
   gnucash/trunk/src/gnc/CMakeLists.txt
Log:
Cutecash: Adapt to compiler/linker flags that are needed on Ubuntu 13.10

Modified: gnucash/trunk/CMakeLists.txt
===================================================================
--- gnucash/trunk/CMakeLists.txt	2013-11-18 08:00:34 UTC (rev 23410)
+++ gnucash/trunk/CMakeLists.txt	2013-11-18 08:00:44 UTC (rev 23411)
@@ -56,7 +56,7 @@
 
 ## Libxml2
 #FIND_PACKAGE (LibXml2 REQUIRED)
-#FIND_PACKAGE (ZLIB REQUIRED)
+FIND_PACKAGE (ZLIB REQUIRED)
 
 IF (NOT GLIB2_FOUND)
    MESSAGE (SEND_ERROR "Glib2 not found, but is required")
@@ -123,6 +123,7 @@
 # Compiler flags
 IF (UNIX)
   SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations  -Wno-unused")
+  SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=deprecated-declarations")
 ENDIF (UNIX)
 IF (MINGW)
   SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wdeclaration-after-statement -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations  -Wno-unused")

Modified: gnucash/trunk/src/gnc/CMakeLists.txt
===================================================================
--- gnucash/trunk/src/gnc/CMakeLists.txt	2013-11-18 08:00:34 UTC (rev 23410)
+++ gnucash/trunk/src/gnc/CMakeLists.txt	2013-11-18 08:00:44 UTC (rev 23411)
@@ -127,5 +127,6 @@
 ENDIF (WIN32)
 
 TARGET_LINK_LIBRARIES (cutecash ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY})
+TARGET_LINK_LIBRARIES (cutecash pthread)
 
 INSTALL (TARGETS cutecash RUNTIME DESTINATION bin)



More information about the gnucash-changes mailing list