Only enable azureop build in CI builds (#525)
* Only enable azureop build in CI builds * correct it * no $
This commit is contained in:
Родитель
486c2b6d79
Коммит
029a2aac14
|
@ -59,7 +59,7 @@ option(OCOS_ENABLE_OPENCV_CODECS "Enable cv2 and vision operators that require o
|
|||
option(OCOS_ENABLE_CV2 "Enable the operators in `operators/cv2`" ON)
|
||||
option(OCOS_ENABLE_VISION "Enable the operators in `operators/vision`" ON)
|
||||
option(OCOS_ENABLE_AUDIO "Enable the operators for audio processing" ON)
|
||||
option(OCOS_ENABLE_AZURE "Enable the operators for azure execution provider" ON)
|
||||
option(OCOS_ENABLE_AZURE "Enable the operators for azure execution provider" OFF)
|
||||
|
||||
option(OCOS_ENABLE_STATIC_LIB "Enable generating static library" OFF)
|
||||
option(OCOS_ENABLE_SELECTED_OPLIST "Enable including the selected_ops tool file" OFF)
|
||||
|
@ -73,6 +73,14 @@ option(OCOS_BUILD_APPLE_FRAMEWORK "Enable building of the MacOS/iOS framework" O
|
|||
set(OCOS_ONNXRUNTIME_VERSION "" CACHE STRING
|
||||
"The version of ONNX Runtime being used in the build. Format is <major>.<minor>.<patch>. e.g. 1.15.1" )
|
||||
|
||||
# TODO: Remove the following statements if AzureOp build is enabled by default.
|
||||
# If build_buildid environment varaible is set, which means this is a CI build, then always enable AzureOp.
|
||||
# or it is enabled when OCOS_ENABLE_AZURE is set, which means the user explicitly enables it.
|
||||
if ((DEFINED ENV{BUILD_BUILDID}) OR (DEFINED ENV{OCOS_ENABLE_AZURE}))
|
||||
set(OCOS_ENABLE_AZURE ON CACHE INTERNAL "" FORCE)
|
||||
message("===> AzureOp is enabled by default.")
|
||||
endif()
|
||||
|
||||
function(disable_all_operators)
|
||||
set(OCOS_ENABLE_RE2_REGEX OFF CACHE INTERNAL "" FORCE)
|
||||
set(OCOS_ENABLE_TF_STRING OFF CACHE INTERNAL "" FORCE)
|
||||
|
|
Загрузка…
Ссылка в новой задаче