From d65cb71a9911877dc5f4054119c7490388df1dd9 Mon Sep 17 00:00:00 2001 From: Theodore Tsirpanis Date: Tue, 24 Oct 2023 00:12:51 +0300 Subject: [PATCH] Add back sources of the TileDB library projects. On Linux CMake complains that the targets have no sources, and now it succeeds in both Linux and Windows as well. --- tiledb/CMakeLists.txt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tiledb/CMakeLists.txt b/tiledb/CMakeLists.txt index b6853c1f1a4d..beb0301dc967 100644 --- a/tiledb/CMakeLists.txt +++ b/tiledb/CMakeLists.txt @@ -1021,7 +1021,7 @@ endif() # TileDB static and shared library targets ############################################################ -add_library(tiledb_shared SHARED) +add_library(tiledb_shared SHARED $) file(READ "${CMAKE_CURRENT_SOURCE_DIR}/sm/c_api/tiledb_version.h" ver) @@ -1074,12 +1074,6 @@ target_link_libraries(tiledb_shared ) if (TILEDB_STATIC) - # Create the target - add_library(tiledb_static STATIC) - target_link_libraries(tiledb_static - PRIVATE - $ - ) if (WIN32) # Copy over all include directories, compile options, etc, from the regular # core objects. @@ -1095,6 +1089,13 @@ if (TILEDB_STATIC) PRIVATE $ ) + # Create the target + add_library(tiledb_static STATIC + $) + target_link_libraries(tiledb_static + PRIVATE + $ + ) target_compile_definitions(tiledb_static INTERFACE -DTILEDB_STATIC_DEFINE @@ -1106,6 +1107,7 @@ if (TILEDB_STATIC) OUTPUT_NAME "tiledbstatic" ) else() + add_library(tiledb_static STATIC $) set_target_properties(tiledb_static PROPERTIES OUTPUT_NAME "tiledb"