Skip to content

Commit

Permalink
Fix basic example (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gazizonoki authored Mar 14, 2024
1 parent 1fac6f9 commit b3e70d3
Show file tree
Hide file tree
Showing 2,746 changed files with 442 additions and 961,605 deletions.
6 changes: 1 addition & 5 deletions client/draft/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,4 @@ target_sources(cpp-client-draft PRIVATE
${CMAKE_SOURCE_DIR}/client/draft/ydb_long_tx.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-draft PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/extensions/discovery_mutator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,4 @@ target_sources(client-extensions-discovery_mutator PRIVATE
${CMAKE_SOURCE_DIR}/client/extensions/discovery_mutator/discovery_mutator.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(client-extensions-discovery_mutator PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/extensions/solomon_stats/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ target_sources(client-extensions-solomon_stats PRIVATE
${CMAKE_SOURCE_DIR}/client/extensions/solomon_stats/pull_connector.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(client-extensions-solomon_stats PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/helpers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,4 @@ target_sources(cpp-client-helpers PRIVATE
${CMAKE_SOURCE_DIR}/client/helpers/helpers.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-helpers PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/iam/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,4 @@ target_sources(cpp-client-iam PRIVATE
${CMAKE_SOURCE_DIR}/client/iam/iam.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-iam PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/iam/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ target_sources(client-iam-common PRIVATE
${CMAKE_SOURCE_DIR}/client/iam/common/iam.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(client-iam-common PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/iam_private/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,4 @@ target_sources(cpp-client-iam_private PRIVATE
${CMAKE_SOURCE_DIR}/client/iam_private/iam.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-iam_private PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/impl/ydb_endpoints/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,4 @@ target_sources(client-impl-ydb_endpoints PRIVATE
${CMAKE_SOURCE_DIR}/client/impl/ydb_endpoints/endpoints.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(client-impl-ydb_endpoints PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/impl/ydb_internal/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,4 @@ target_sources(impl-ydb_internal-common PRIVATE
${CMAKE_SOURCE_DIR}/client/impl/ydb_internal/common/getenv.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(impl-ydb_internal-common PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/impl/ydb_internal/grpc_connections/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,4 @@ target_sources(impl-ydb_internal-grpc_connections PRIVATE
${CMAKE_SOURCE_DIR}/client/impl/ydb_internal/grpc_connections/grpc_connections.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(impl-ydb_internal-grpc_connections PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/impl/ydb_internal/kqp_session_common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,4 @@ target_sources(impl-ydb_internal-kqp_session_common PRIVATE
${CMAKE_SOURCE_DIR}/client/impl/ydb_internal/kqp_session_common/kqp_session_common.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(impl-ydb_internal-kqp_session_common PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/impl/ydb_internal/logger/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,4 @@ target_sources(impl-ydb_internal-logger PRIVATE
${CMAKE_SOURCE_DIR}/client/impl/ydb_internal/logger/log.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(impl-ydb_internal-logger PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/impl/ydb_internal/make_request/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,4 @@ target_sources(impl-ydb_internal-make_request PRIVATE
${CMAKE_SOURCE_DIR}/client/impl/ydb_internal/make_request/make.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(impl-ydb_internal-make_request PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/impl/ydb_internal/plain_status/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,4 @@ target_sources(impl-ydb_internal-plain_status PRIVATE
${CMAKE_SOURCE_DIR}/client/impl/ydb_internal/plain_status/status.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(impl-ydb_internal-plain_status PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/impl/ydb_internal/retry/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,4 @@ target_sources(impl-ydb_internal-retry PRIVATE
${CMAKE_SOURCE_DIR}/client/impl/ydb_internal/retry/retry.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(impl-ydb_internal-retry PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/impl/ydb_internal/session_pool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ target_sources(impl-ydb_internal-session_pool PRIVATE
${CMAKE_SOURCE_DIR}/client/impl/ydb_internal/session_pool/session_pool.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(impl-ydb_internal-session_pool PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/impl/ydb_internal/thread_pool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,4 @@ target_sources(impl-ydb_internal-thread_pool PRIVATE
${CMAKE_SOURCE_DIR}/client/impl/ydb_internal/thread_pool/pool.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(impl-ydb_internal-thread_pool PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/impl/ydb_internal/value_helpers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,4 @@ target_sources(impl-ydb_internal-value_helpers PRIVATE
${CMAKE_SOURCE_DIR}/client/impl/ydb_internal/value_helpers/helpers.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(impl-ydb_internal-value_helpers PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/impl/ydb_stats/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,4 @@ target_sources(client-impl-ydb_stats PRIVATE
${CMAKE_SOURCE_DIR}/client/impl/ydb_stats/stats.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(client-impl-ydb_stats PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_common_client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,4 @@ target_sources(cpp-client-ydb_common_client PRIVATE
${CMAKE_SOURCE_DIR}/client/ydb_common_client/settings.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-ydb_common_client PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_common_client/impl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,4 @@ target_sources(client-ydb_common_client-impl PRIVATE
${CMAKE_SOURCE_DIR}/client/ydb_common_client/impl/client.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(client-ydb_common_client-impl PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_coordination/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,4 @@ generate_enum_serilization(cpp-client-ydb_coordination
client/ydb_coordination/coordination.h
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-ydb_coordination PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_datastreams/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,4 @@ target_sources(cpp-client-ydb_datastreams PRIVATE
${CMAKE_SOURCE_DIR}/client/ydb_datastreams/datastreams.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-ydb_datastreams PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_driver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,4 @@ target_sources(cpp-client-ydb_driver PRIVATE
${CMAKE_SOURCE_DIR}/client/ydb_driver/driver.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-ydb_driver PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_extension/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,4 @@ target_sources(cpp-client-ydb_extension PRIVATE
${CMAKE_SOURCE_DIR}/client/ydb_extension/extension.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-ydb_extension PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_federated_topic/impl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,4 @@ target_sources(client-ydb_federated_topic-impl PRIVATE
${CMAKE_SOURCE_DIR}/client/ydb_federated_topic/impl/federation_observer.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(client-ydb_federated_topic-impl PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_import/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,4 @@ generate_enum_serilization(cpp-client-ydb_import
client/ydb_import/import.h
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-ydb_import PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_monitoring/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,4 @@ generate_enum_serilization(cpp-client-ydb_monitoring
client/ydb_monitoring/monitoring.h
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-ydb_monitoring PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_operation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,4 @@ target_sources(cpp-client-ydb_operation PRIVATE
${CMAKE_SOURCE_DIR}/client/ydb_operation/operation.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-ydb_operation PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_params/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ target_sources(cpp-client-ydb_params PRIVATE
${CMAKE_SOURCE_DIR}/client/ydb_params/impl.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-ydb_params PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_persqueue_public/codecs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ target_sources(client-ydb_persqueue_public-codecs PRIVATE
${CMAKE_SOURCE_DIR}/client/ydb_persqueue_public/codecs/codecs.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(client-ydb_persqueue_public-codecs PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_proto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,4 @@ target_sources(cpp-client-ydb_proto PRIVATE
${CMAKE_SOURCE_DIR}/client/ydb_proto/accessor.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-ydb_proto PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_query/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,4 @@ target_sources(cpp-client-ydb_query PRIVATE
${CMAKE_SOURCE_DIR}/client/ydb_query/tx.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-ydb_query PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_query/impl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,4 @@ target_sources(client-ydb_query-impl PRIVATE
${CMAKE_SOURCE_DIR}/client/ydb_query/impl/client_session.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(client-ydb_query-impl PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_rate_limiter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,4 @@ target_sources(cpp-client-ydb_rate_limiter PRIVATE
${CMAKE_SOURCE_DIR}/client/ydb_rate_limiter/rate_limiter.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-ydb_rate_limiter PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_result/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ target_sources(cpp-client-ydb_result PRIVATE
${CMAKE_SOURCE_DIR}/client/ydb_result/result.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-ydb_result PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_scheme/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,4 @@ generate_enum_serilization(cpp-client-ydb_scheme
client/ydb_scheme/scheme.h
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-ydb_scheme PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_table/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,4 @@ generate_enum_serilization(cpp-client-ydb_table
client/ydb_table/table_enum.h
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(cpp-client-ydb_table PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_table/impl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,4 @@ target_sources(client-ydb_table-impl PRIVATE
${CMAKE_SOURCE_DIR}/client/ydb_table/impl/table_client.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(client-ydb_table-impl PUBLIC

)
endif()

6 changes: 1 addition & 5 deletions client/ydb_table/query_stats/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,4 @@ target_sources(client-ydb_table-query_stats PRIVATE
${CMAKE_SOURCE_DIR}/client/ydb_table/query_stats/stats.cpp
)

if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT HAVE_CUDA)
target_link_libraries(client-ydb_table-query_stats PUBLIC

)
endif()

Loading

0 comments on commit b3e70d3

Please sign in to comment.