Cutecash: Adapt to compiler/linker flags that are needed on Ubuntu 13.10

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23411 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming
2013-11-18 08:00:44 +00:00
parent a6f2ba86d7
commit 77471eb70b
2 changed files with 3 additions and 1 deletions

View File

@@ -56,7 +56,7 @@ ENDIF (MSVC)
## 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 @@ ENDIF (WITH_AQBANKING)
# 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")

View File

@@ -127,5 +127,6 @@ IF (WIN32)
ENDIF (WIN32)
TARGET_LINK_LIBRARIES (cutecash ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY})
TARGET_LINK_LIBRARIES (cutecash pthread)
INSTALL (TARGETS cutecash RUNTIME DESTINATION bin)