Fix shared library build with sqlite
Dependency to threading lib is required (It is already provided for static SimGear).
This commit is contained in:
parent
0f850312ea
commit
acb7fb8e95
2 changed files with 4 additions and 1 deletions
|
@ -189,6 +189,9 @@ if (SYSTEM_SQLITE)
|
|||
message(STATUS "Using system SQLite3 library")
|
||||
endif (SYSTEM_SQLITE)
|
||||
|
||||
# Sqlite always depends on the threading lib
|
||||
list(APPEND SQLITE3_LIBRARY ${CMAKE_THREAD_LIBS_INIT})
|
||||
|
||||
find_package(PLIB REQUIRED puaux pu js fnt)
|
||||
|
||||
# FlightGear and SimGear versions need to match
|
||||
|
|
|
@ -92,13 +92,13 @@ include_directories(${PROJECT_SOURCE_DIR}/src/Canvas/ShivaVG/include)
|
|||
add_definitions(-DVG_API_EXPORT)
|
||||
|
||||
target_link_libraries(fgfs
|
||||
${SQLITE3_LIBRARY}
|
||||
${SIMGEAR_LIBRARIES}
|
||||
${OPENSCENEGRAPH_LIBRARIES}
|
||||
${OPENGL_LIBRARIES}
|
||||
${PLIB_LIBRARIES}
|
||||
${JPEG_LIBRARY}
|
||||
${HLA_LIBRARIES}
|
||||
${SQLITE3_LIBRARY}
|
||||
${EVENT_INPUT_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
${SIMGEAR_SCENE_LIBRARY_DEPENDENCIES}
|
||||
|
|
Loading…
Add table
Reference in a new issue