Skip to content

Commit 14e99dd

Browse files
Reintroduce TILEDB_STATIC under a deprecation warning. (#4732)
--- TYPE: BUILD DESC: Reintroduce the `TILEDB_STATIC` option under a deprecation warning.
1 parent 32401e3 commit 14e99dd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cmake/Options/BuildOptions.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ option(CMAKE_EXPORT_COMPILE_COMMANDS "cmake compile commands" ON)
4040

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

43+
if (DEFINED TILEDB_STATIC)
44+
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.")
45+
if (TILEDB_STATIC)
46+
set(BUILD_SHARED_LIBS OFF)
47+
else()
48+
set(BUILD_SHARED_LIBS ON)
49+
endif()
50+
endif()
51+
4352
if (NOT TILEDB_VCPKG)
4453
message(DEPRECATION "Disabling TILEDB_VCPKG is deprecated and will be removed in a future version.")
4554
endif()

0 commit comments

Comments
 (0)