Unverified Commit f7fef600 authored by Hongzhi (Steve), Chen's avatar Hongzhi (Steve), Chen Committed by GitHub
Browse files

[Misc] Support build option: "all". (#6102)


Co-authored-by: default avatarUbuntu <ubuntu@ip-172-31-28-63.ap-northeast-1.compute.internal>
parent 7b308dc6
......@@ -47,33 +47,33 @@ else()
python3
)
# Options for building DGL features.
# Options for building DGL features, supported: "none", "dev", "test", "release", "all".
# NOTE: do not modify this file to change option values.
# Use bash script/build_dgl.sh -e '-DFEATURE_NAME=ON/OFF' through command-line.
dgl_feature_option(
BUILD_SPARSE
"Build DGL sparse library"
"dev" "test" "release"
"all"
)
dgl_feature_option(
BUILD_TORCH
"Build the PyTorch plugin"
"dev" "test" "release"
"all"
)
dgl_feature_option(
USE_EPOLL
"Build with epoll for socket communicator"
"dev" "test" "release"
"all"
)
dgl_feature_option(
USE_LIBXSMM
"Build with LIBXSMM library optimization"
"dev" "test" "release"
"all"
)
dgl_feature_option(
USE_OPENMP
"Build with OpenMP"
"dev" "test" "release"
"all"
)
dgl_feature_option(
......
......@@ -11,7 +11,9 @@ endmacro()
macro(dgl_feature_option variable description)
set(__value "")
foreach(arg ${ARGN})
if(arg STREQUAL "dev" OR arg STREQUAL "test" OR arg STREQUAL "release")
if(arg STREQUAL "all")
__dgl_option(${variable} "${description}" ON)
elseif(arg STREQUAL "dev" OR arg STREQUAL "test" OR arg STREQUAL "release")
list(APPEND __value ${arg})
endif()
endforeach()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment