Skip to content

Commit 439a047

Browse files
authored
Add a top level cmake flag NUMBA_ENABLE to build numba related files (#162)
1 parent c2fef8e commit 439a047

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

CMakeLists.txt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ endif()
5151

5252
option(DPNP_ENABLE "Use DPNP for some math functions" OFF)
5353
option(GPU_ENABLE "Enable GPU codegen" OFF)
54+
option(NUMBA_ENABLE "Enable Numba" ON)
5455

5556
message(STATUS "DPNP_ENABLE ${DPNP_ENABLE}")
5657
message(STATUS "GPU_ENABLE ${GPU_ENABLE}")
@@ -66,16 +67,18 @@ macro(apply_llvm_compile_flags target)
6667
target_compile_definitions(${target} PRIVATE ${LLVM_DEFINITIONS})
6768
endmacro()
6869

69-
add_subdirectory(mlir)
70-
add_subdirectory(dpcomp_math_runtime)
71-
add_subdirectory(dpcomp_runtime)
72-
add_subdirectory(tools)
73-
7470
if(GPU_ENABLE)
7571
add_subdirectory(dpcomp_gpu_runtime)
7672
endif()
7773

78-
add_subdirectory(numba_dpcomp)
74+
add_subdirectory(mlir)
75+
76+
if(NUMBA_ENABLE)
77+
add_subdirectory(dpcomp_math_runtime)
78+
add_subdirectory(dpcomp_runtime)
79+
add_subdirectory(tools)
80+
add_subdirectory(numba_dpcomp)
81+
endif()
7982

8083
if(BUILD_TESTING)
8184
add_subdirectory(test)

0 commit comments

Comments
 (0)