Warning, /libraries/kdb/cmake/modules/FindFreeTDS.cmake is written in an unsupported language. File is not indexed.

0001 # - Try to find the FreeTDS library
0002 # Once done this will define
0003 #
0004 #  FreeTDS_FOUND - system has FreeTDS
0005 #  FreeTDS_INCLUDE_DIR - the FreeTDS include directory
0006 #  FreeTDS_LIBRARIES - Link these to use FreeTDS
0007 
0008 
0009 if (FreeTDS_INCLUDE_DIR AND FreeTDS_LIBRARIES )
0010 
0011        # Already in cache
0012        set(FREETDS_FOUND TRUE)
0013 
0014 else ()
0015 
0016        find_path(FreeTDS_INCLUDE_DIR NAMES sqldb.h sqlfront.h
0017        )
0018 
0019        find_library(FreeTDS_TDS_LIBRARIES NAMES tds )
0020 
0021        find_library(FreeTDS_SYBDB_LIBRARIES NAMES sybdb )
0022 
0023        set(FreeTDS_LIBRARIES ${FreeTDS_SYBDB_LIBRARIES} ${FreeTDS_TDS_LIBRARIES} CACHE STRING "Libraries needed for sybase/mssql driver")
0024 
0025        include(FindPackageHandleStandardArgs)
0026        find_package_handle_standard_args(FreeTDS DEFAULT_MSG FreeTDS_INCLUDE_DIR FreeTDS_LIBRARIES )
0027 
0028        mark_as_advanced(FreeTDS_INCLUDE_DIR FreeTDS_LIBRARIES)
0029 
0030 endif ()
0031