Skip to content

Commit

Permalink
Add a src/enterprise folder with CMake includes
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Nov 13, 2024
1 parent 7cece9e commit 24a2eaf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/enterprise/index.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target_compile_definitions(schema_registry_index PRIVATE SOURCEMETA_REGISTRY_ENTERPRISE)
1 change: 1 addition & 0 deletions src/enterprise/server.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target_compile_definitions(schema_registry_server PRIVATE SOURCEMETA_REGISTRY_ENTERPRISE)
3 changes: 1 addition & 2 deletions src/index/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ target_link_libraries(schema_registry_index PRIVATE sourcemeta::blaze::compiler)
target_link_libraries(schema_registry_index PRIVATE sourcemeta::blaze::evaluator)

if(REGISTRY_ENTERPRISE)
target_compile_definitions(schema_registry_index
PRIVATE SOURCEMETA_REGISTRY_ENTERPRISE)
include(../enterprise/index.cmake)
endif()

file(READ "${PROJECT_SOURCE_DIR}/schemas/configuration.json" SCHEMA_CONFIGURATION)
Expand Down
3 changes: 1 addition & 2 deletions src/server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ target_link_libraries(schema_registry_server PRIVATE sourcemeta::hydra::httpserv
target_link_libraries(schema_registry_server PRIVATE sourcemeta::hydra::crypto)

if(REGISTRY_ENTERPRISE)
target_compile_definitions(schema_registry_server
PRIVATE SOURCEMETA_REGISTRY_ENTERPRISE)
include(../enterprise/server.cmake)
endif()

configure_file(configure.h.in configure.h @ONLY)
Expand Down

0 comments on commit 24a2eaf

Please sign in to comment.