"Fossies" - the Fresh Open Source Software Archive

Member "mysql-connector-c-6.1.11-src/vio/CMakeLists.txt" (13 Jul 2017, 1352 Bytes) of package /linux/misc/old/mysql-connector-c-6.1.11-src.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "CMakeLists.txt": 6.1.10-src_vs_6.1.11-src.

    1 # Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved.
    2 #
    3 # This program is free software; you can redistribute it and/or modify
    4 # it under the terms of the GNU General Public License as published by
    5 # the Free Software Foundation; version 2 of the License.
    6 #
    7 # This program is distributed in the hope that it will be useful,
    8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   10 # GNU General Public License for more details.
   11 #
   12 # You should have received a copy of the GNU General Public License
   13 # along with this program; if not, write to the Free Software
   14 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
   15 
   16 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
   17 ${SSL_INCLUDE_DIRS})
   18 ADD_DEFINITIONS(${SSL_DEFINES})
   19 
   20 SET(VIO_SOURCES
   21   vio.c
   22   viosocket.c
   23   viossl.c
   24   viosslfactories.c
   25 )
   26 
   27 IF(WIN32)
   28   LIST(APPEND VIO_SOURCES
   29     viopipe.c
   30     vioshm.c
   31   )
   32 ENDIF()
   33 
   34 ADD_CONVENIENCE_LIBRARY(vio ${VIO_SOURCES})
   35 TARGET_LINK_LIBRARIES(vio ${LIBSOCKET})
   36 
   37 
   38 if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
   39   my_check_c_compiler_flag("-Wno-unused-but-set-variable" UNUSED_BUT_SET)
   40   if (UNUSED_BUT_SET)
   41     target_compile_options(vio PRIVATE
   42        -Wno-unused-but-set-variable   # viosocket.c:748
   43     )
   44   endif()
   45 endif()