From 18a1eb75af163e7eba5c3f4331f93bd65d133b58 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Sat, 18 Dec 2010 18:19:18 +0000 Subject: [PATCH] Add our copy of sqlite to the include path only if it's actually being used. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e384361c..583c150c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,7 +109,6 @@ include_directories(${LIBXML_INCLUDE_DIRS}) if (HAVE_LIBLASTFM) include_directories(${LASTFM_INCLUDE_DIRS}) endif (HAVE_LIBLASTFM) -include_directories("3rdparty/qsqlite") include_directories("3rdparty/universalchardet") # Remove GLU and GL from the link line - they're not really required @@ -186,6 +185,7 @@ if(STATIC_SQLITE) message(STATUS "Building static qsqlite plugin") add_definitions(-DQT_STATICPLUGIN) add_subdirectory(3rdparty/qsqlite) + include_directories("3rdparty/qsqlite") endif(STATIC_SQLITE) # When/if upstream accepts our patches then these options can be used to link