~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to .pc/kubuntu_02_freetds_library.diff/cmake/modules/FindFreeTDS.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# - Try to find the FreeTDS library 
2
 
# Once done this will define
3
 
#
4
 
#  FreeTDS_FOUND - system has FreeTDS
5
 
#  FreeTDS_INCLUDE_DIR - the FreeTDS include directory
6
 
#  FreeTDS_LIBRARIES - Link these to use FreeTDS
7
 
 
8
 
 
9
 
IF (FreeTDS_INCLUDE_DIR AND FreeTDS_LIBRARIES )
10
 
 
11
 
        # Already in cache
12
 
        SET(FREETDS_FOUND TRUE)
13
 
 
14
 
ELSE (FreeTDS_INCLUDE_DIR AND FreeTDS_LIBRARIES)
15
 
 
16
 
       FIND_PATH(FreeTDS_INCLUDE_DIR NAMES sqldb.h sqlfront.h
17
 
       )
18
 
 
19
 
       FIND_LIBRARY(FreeTDS_TDS_LIBRARIES NAMES tds )
20
 
 
21
 
       FIND_LIBRARY(FreeTDS_SYBDB_LIBRARIES NAMES sybdb )
22
 
  
23
 
       set(FreeTDS_LIBRARIES ${FreeTDS_SYBDB_LIBRARIES} ${FreeTDS_TDS_LIBRARIES} CACHE STRING "Libraries needed for sybase/mssql driver")
24
 
 
25
 
       include(FindPackageHandleStandardArgs)
26
 
       FIND_PACKAGE_HANDLE_STANDARD_ARGS(FreeTDS DEFAULT_MSG FreeTDS_INCLUDE_DIR FreeTDS_LIBRARIES )
27
 
 
28
 
       MARK_AS_ADVANCED(FreeTDS_INCLUDE_DIR FreeTDS_LIBRARIES)
29
 
 
30
 
ENDIF (FreeTDS_INCLUDE_DIR AND FreeTDS_LIBRARIES )
31