Skip to content

Commit

Permalink
Fix sqlite3 linking error
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Risca committed Jan 10, 2021
1 parent fcecf9f commit 33f63b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plex/CMakeModules/PlatformConfigLINUX.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 33f63b8

Please sign in to comment.