diff --git a/.cspell/words.txt b/.cspell/words.txt index 8d8257be..e35b908a 100644 --- a/.cspell/words.txt +++ b/.cspell/words.txt @@ -60,6 +60,7 @@ dopenssl_root_dir dopenssl_use_static_libs dportable dproject_static_link +drepertory_enable_s3 drocksdb_install_on_windows dshared dspdlog_fmt_external diff --git a/project.cmake b/project.cmake index 6016a8f4..46c0427f 100644 --- a/project.cmake +++ b/project.cmake @@ -14,6 +14,11 @@ set(REPERTORY_VER_COMPANYNAME_STR "https://git.fifthgrid.com/blockstorage") set(REPERTORY_VER_LEGALCOPYRIGHT_STR "Copyright <2018-2024> ") set(REPERTORY_VER_FILEDESCRIPTION_STR "Mount utility for Sia and S3") +option(REPERTORY_ENABLE_S3 "Enable S3 support" ON) +if (REPERTORY_ENABLE_S3) + add_definitions(-DREPERTORY_ENABLE_S3) +endif() + # configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.rc.in ${CMAKE_CURRENT_SOURCE_DIR}/src/version.rc @ONLY) # set(WINDOWS_VERSION_RC ${CMAKE_CURRENT_SOURCE_DIR}/src/version.rc) configure_file(