vcpkg/ports/proj4/fix-sqlite-dependency-export.patch
Owen Rudge ac0d90f680 [proj4] Update to version 6.2.1; disable exporting symbols for static libraries (#9227)
* [proj4] Update to version 6.2.1; disable exporting symbols for static libraries

* Remove deprecated function

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
2019-12-20 12:16:46 -08:00

14 lines
492 B
Diff

diff --git a/src/lib_proj.cmake b/src/lib_proj.cmake
index 2e90f98f..dc171e91 100644
--- a/src/lib_proj.cmake
+++ b/src/lib_proj.cmake
@@ -441,7 +441,7 @@ if(USE_THREAD AND Threads_FOUND AND CMAKE_USE_PTHREADS_INIT)
endif()
include_directories(${SQLITE3_INCLUDE_DIR})
-target_link_libraries(${PROJ_CORE_TARGET} ${SQLITE3_LIBRARY})
+target_link_libraries(${PROJ_CORE_TARGET} PUBLIC ${SQLITE3_LIBRARY})
if(MSVC AND BUILD_LIBPROJ_SHARED)
target_compile_definitions(${PROJ_CORE_TARGET}