Skip to content

Commit

Permalink
Build position independent (#79)
Browse files Browse the repository at this point in the history
- for a shared library, no lib file is generated on Windows
- needed for Linux to be included in shared libraries
  • Loading branch information
Martin-Idel-SI authored and Karsten1987 committed Dec 20, 2018
1 parent 4618d2f commit f97189b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sqlite3_vendor/sqlite3_cmakelists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.5)
add_library(sqlite3 SHARED sqlite3.c)
set(CMAKE_POSITION_INDEPENDENT_CODE ON) # for Linux, since the library will be used in a shared lib
add_library(sqlite3 sqlite3.c)
set_target_properties(sqlite3 PROPERTIES
INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib)

Expand Down

0 comments on commit f97189b

Please sign in to comment.