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

[Misc] Add comment to clarify __dgl_option. (#6106)


Co-authored-by: default avatarUbuntu <ubuntu@ip-172-31-28-63.ap-northeast-1.compute.internal>
parent f7fef600
# NOTE: __dgl_option will not reset existing variables.
macro(__dgl_option variable description value) macro(__dgl_option variable description value)
if(NOT DEFINED ${variable}) if(NOT DEFINED ${variable})
set(${variable} ${value} CACHE STRING ${description}) set(${variable} ${value} CACHE STRING ${description})
...@@ -21,6 +22,7 @@ macro(dgl_feature_option variable description) ...@@ -21,6 +22,7 @@ macro(dgl_feature_option variable description)
if(${BUILD_TYPE} IN_LIST __value) if(${BUILD_TYPE} IN_LIST __value)
__dgl_option(${variable} "${description}" ON) __dgl_option(${variable} "${description}" ON)
else() else()
# NOTE: __dgl_option will not reset existing variables.
__dgl_option(${variable} "${description}" OFF) __dgl_option(${variable} "${description}" OFF)
endif() endif()
endmacro() endmacro()
......
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