From: ThorstenB Date: Fri, 21 Sep 2012 20:32:07 +0000 (+0200) Subject: Fix shared library build with sqlite X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=acb7fb8e9526a26f5b40f1a08c8e7375b2608a86;p=flightgear.git Fix shared library build with sqlite Dependency to threading lib is required (It is already provided for static SimGear). --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 617d93d36..47519337c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/src/Main/CMakeLists.txt b/src/Main/CMakeLists.txt index d3fc203ae..8a8769cd3 100644 --- a/src/Main/CMakeLists.txt +++ b/src/Main/CMakeLists.txt @@ -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}