[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdesupport/soprano
From:       Christian Ehrlicher <Ch.Ehrlicher () gmx ! de>
Date:       2010-01-09 10:51:33
Message-ID: 1263034293.718820.15453.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1072054 by chehrlic:

only build virtuoso backend on win32 when sql.h is found

 M  +9 -2      CMakeLists.txt  


--- trunk/kdesupport/soprano/CMakeLists.txt #1072053:1072054
@@ -84,6 +84,10 @@
 if(NOT SOPRANO_DISABLE_VIRTUOSO_BACKEND AND NOT WIN32)
   find_package(IODBC)
 endif(NOT SOPRANO_DISABLE_VIRTUOSO_BACKEND AND NOT WIN32)
+if(WIN32)
+  include(CheckIncludeFileCXX)
+  check_include_file_cxx(sql.h HAVE_SQL_H)
+endif(WIN32)
 
 
 ##################  setup variables  ################################
@@ -109,9 +113,12 @@
 if(NOT SOPRANO_DISABLE_DBUS AND QT_QTDBUS_FOUND)
   set(BUILD_DBUS_SUPPORT TRUE)
 endif(NOT SOPRANO_DISABLE_DBUS AND QT_QTDBUS_FOUND)
-if(NOT SOPRANO_DISABLE_VIRTUOSO_BACKEND AND IODBC_FOUND OR WIN32)
+if(NOT SOPRANO_DISABLE_VIRTUOSO_BACKEND AND IODBC_FOUND)
   set(BUILD_VIRTUOSO_BACKEND TRUE)
-endif(NOT SOPRANO_DISABLE_VIRTUOSO_BACKEND AND IODBC_FOUND OR WIN32)
+endif(NOT SOPRANO_DISABLE_VIRTUOSO_BACKEND AND IODBC_FOUND)
+if(WIN32 AND HAVE_SQL_H)
+  set(BUILD_VIRTUOSO_BACKEND TRUE)
+endif(WIN32 AND HAVE_SQL_H)
 set(HAVE_DBUS BUILD_DBUS_SUPPORT)
 
 ##################  setup install directories  ################################
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic