Skip to content

Commit dafe3c4

Browse files
committed
build(cmake): fix dependency config warnings & scaffold qxctl
- QuanuX-Annex/CMakeLists.txt: Update CLOUD_TARGET validation and make google_cloud_cpp_storage require GCP target. - QuanuX-Spreader/cpp/CMakeLists.txt: Suppress default active WARNING for missing STRATEGY_HEADER by switching to STATUS. - server/cli/qxctl/qxctl: Scaffold initial bash entrypoint for the qxctl command line interface.
1 parent 0fb43cc commit dafe3c4

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

QuanuX-Annex/CMakeLists.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
88

99
set(CLOUD_TARGET "NONE" CACHE STRING "Target cloud environment: DO, AWS, GCP, AZURE")
1010

11-
if(CLOUD_TARGET STREQUAL "NONE")
12-
message(FATAL_ERROR "You must specify a CLOUD_TARGET (e.g., -DCLOUD_TARGET=AWS)")
11+
if(CLOUD_TARGET STREQUAL "NONE" OR CLOUD_TARGET STREQUAL "")
12+
message(FATAL_ERROR "You must specify a CLOUD_TARGET. Example: -DCLOUD_TARGET=AWS")
1313
endif()
1414

1515
message(STATUS "Configuring QuanuX-Annex Storage Abstraction Layer for cloud target: ${CLOUD_TARGET}")
@@ -45,7 +45,9 @@ find_package(Threads REQUIRED)
4545
find_package(arrow REQUIRED)
4646
find_package(HDF5 REQUIRED COMPONENTS C)
4747
find_package(blosc2 REQUIRED)
48-
find_package(google_cloud_cpp_storage REQUIRED)
48+
if(CLOUD_TARGET STREQUAL "GCP")
49+
find_package(google_cloud_cpp_storage REQUIRED)
50+
endif()
4951

5052
set(QECD_SOURCES
5153
src/TranslationMatrix.cpp
@@ -70,5 +72,8 @@ target_link_libraries(quanux_annex PRIVATE
7072
arrow_shared
7173
HDF5::HDF5
7274
blosc2
73-
google-cloud-cpp::storage
7475
)
76+
77+
if(CLOUD_TARGET STREQUAL "GCP")
78+
target_link_libraries(quanux_annex PRIVATE google-cloud-cpp::storage)
79+
endif()

QuanuX-Spreader/cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if(DEFINED STRATEGY_HEADER)
3535
else()
3636
# Default to the stub if no strategy is injected
3737
add_compile_definitions(INJECTED_STRATEGY_HEADER="spreader/strategy_stub.hpp")
38-
message(WARNING "No STRATEGY_HEADER provided. Compiling with default stub.")
38+
message(STATUS "No STRATEGY_HEADER provided. Compiling with default stub.")
3939
endif()
4040

4141
# Executable target

server/cli/qxctl/qxctl

31.7 MB
Binary file not shown.

0 commit comments

Comments
 (0)