Skip to content

Commit 33f63b8

Browse files
committed
Fix sqlite3 linking error
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 <risca@powerlamerz.org>
1 parent fcecf9f commit 33f63b8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

plex/CMakeModules/PlatformConfigLINUX.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ foreach(l ${LINK_PKG})
6464
plex_find_package(${l} 1 1)
6565
endforeach()
6666

67+
if(SQLite3_FOUND)
68+
include_directories(${SQLite3_INCLUDE_DIRS})
69+
list(APPEND CONFIG_PLEX_LINK_LIBRARIES ${SQLite3_LIBRARIES})
70+
set(HAVE_SQLITE3 1)
71+
endif()
72+
6773
find_package(Boost COMPONENTS thread system timer REQUIRED)
6874
if(Boost_FOUND)
6975
include_directories(${Boost_INCLUDE_DIRS})

0 commit comments

Comments
 (0)