From 33f63b87bd9c1c02b0bfb5d7e3f268d107f871af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Dahlstr=C3=B6m?= Date: Sat, 14 Mar 2020 17:14:10 +0100 Subject: [PATCH] Fix sqlite3 linking error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the build host already have a FindSQLite3.cmake file, then cmake will use that instead, and not call the ples_* functions for updating linker list Signed-off-by: Patrik Dahlström --- plex/CMakeModules/PlatformConfigLINUX.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plex/CMakeModules/PlatformConfigLINUX.cmake b/plex/CMakeModules/PlatformConfigLINUX.cmake index 982a7e224..57b54b1fe 100644 --- a/plex/CMakeModules/PlatformConfigLINUX.cmake +++ b/plex/CMakeModules/PlatformConfigLINUX.cmake @@ -64,6 +64,12 @@ foreach(l ${LINK_PKG}) plex_find_package(${l} 1 1) endforeach() +if(SQLite3_FOUND) + include_directories(${SQLite3_INCLUDE_DIRS}) + list(APPEND CONFIG_PLEX_LINK_LIBRARIES ${SQLite3_LIBRARIES}) + set(HAVE_SQLITE3 1) + endif() + find_package(Boost COMPONENTS thread system timer REQUIRED) if(Boost_FOUND) include_directories(${Boost_INCLUDE_DIRS})