File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,14 @@ option(ONNX_COVERAGE "Build with coverage instrumentation" OFF)
24
24
option (ONNX_BUILD_TESTS "Build ONNX C++ APIs Tests" OFF )
25
25
option (ONNX_USE_LITE_PROTO "Use lite protobuf instead of full." OFF )
26
26
option (ONNXIFI_ENABLE_EXT "Enable onnxifi extensions." OFF )
27
- if (DEFINED ENV{ONNX_ML})
28
- set (DEFAULT_ONNX_ML $ENV{ONNX_ML} )
29
- else ()
30
- set (DEFAULT_ONNX_ML ON )
27
+ if (NOT DEFINED ONNX_ML)
28
+ if (DEFINED ENV{ONNX_ML})
29
+ set (DEFAULT_ONNX_ML $ENV{ONNX_ML} )
30
+ else ()
31
+ set (DEFAULT_ONNX_ML ON )
32
+ endif ()
33
+ option (ONNX_ML "Enable traditional ML API." ${DEFAULT_ONNX_ML} )
31
34
endif ()
32
- option (ONNX_ML "Enable traditional ML API." ${DEFAULT_ONNX_ML} )
33
35
option (ONNXIFI_DUMMY_BACKEND "Use dummy backend in onnxifi test driver." OFF )
34
36
35
37
# Set C++11 as standard for the whole project
You can’t perform that action at this time.
0 commit comments