Skip to content

Commit

Permalink
[Backport release-2.20] Reintroduce TILEDB_STATIC under a deprecati…
Browse files Browse the repository at this point in the history
…on warning. (#4732) (#4738)

Backport
14e99dd
from #4732.

---
TYPE: BUILD
DESC: Reintroduce the `TILEDB_STATIC` option under a deprecation
warning.

Co-authored-by: Theodore Tsirpanis <[email protected]>
  • Loading branch information
KiterLuc and teo-tsirpanis authored Feb 16, 2024
1 parent 40552aa commit 6757e25
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmake/Options/BuildOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ option(CMAKE_EXPORT_COMPILE_COMMANDS "cmake compile commands" ON)

set(TILEDB_INSTALL_LIBDIR "" CACHE STRING "If non-empty, install TileDB library to this directory instead of CMAKE_INSTALL_LIBDIR.")

if (DEFINED TILEDB_STATIC)
message(DEPRECATION "TILEDB_STATIC is deprecated and will be removed in version 2.28, to be released in Q3 2024. Use BUILD_SHARED_LIBS INSTEAD. Building both static and shared libraries is no longer available.")
if (TILEDB_STATIC)
set(BUILD_SHARED_LIBS OFF)
else()
set(BUILD_SHARED_LIBS ON)
endif()
endif()

if (NOT TILEDB_VCPKG)
message(DEPRECATION "Disabling TILEDB_VCPKG is deprecated and will be removed in a future version.")
endif()
Expand Down

0 comments on commit 6757e25

Please sign in to comment.