Skip to content

Commit

Permalink
Fix include directories.
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-tsirpanis committed Oct 25, 2023
1 parent f67d0a6 commit b7a5a3b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libtiledbsoma/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ set(TILEDB_SOMA_EXPORT_HEADER "${TILEDB_SOMA_EXPORT_HEADER}" PARENT_SCOPE)

# Set related compiler settings
target_compile_definitions(TILEDB_SOMA_OBJECTS PRIVATE -DTILEDB_SOMA_OBJECTS_EXPORTS)
target_include_directories(TILEDB_SOMA_OBJECTS PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_include_directories(TILEDB_SOMA_OBJECTS PRIVATE ${TILEDB_SOMA_EXPORT_HEADER_DIR})

# Add the generated header to the public headers list
list(APPEND TILEDB_SOMA_PUBLIC_HEADERS
Expand Down
9 changes: 8 additions & 1 deletion libtiledbsoma/src/soma/logger_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@
#ifndef TILEDB_LOGGER_PUBLIC_H
#define TILEDB_LOGGER_PUBLIC_H

#include "../../tiledbsoma_export.h"
#ifndef TILEDBSOMA_EXPORT
// TILEDBSOMA_EXPORT is defined by the auto-generated tiledbsoma_export.h
// which is included from the top-level tiledbsoma header. We don't include
// it here to simplify the include paths (and avoid copying all headers to
// a single directory like TileDB does). In case the symbol is not defined,
// define it here as empty.
#define TILEDBSOMA_EXPORT
#endif

#include <stdexcept> // for windows: error C2039: 'runtime_error': is not a member of 'std'

Expand Down
4 changes: 3 additions & 1 deletion libtiledbsoma/src/tiledbsoma/tiledbsoma
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@
#ifndef __TILEDBSOMA__
#define __TILEDBSOMA__

// Auto-generated file by CMake, used to define the TILEDBSOMA_EXPORT macro
// to allow exporting symbols in a cross-platform fashion.
#include "tiledbsoma_export.h"
#include "utils/arrow_adapter.h"

#include "utils/common.h"
#include "utils/stats.h"
#include "utils/version.h"
Expand Down

0 comments on commit b7a5a3b

Please sign in to comment.