Skip to content

Commit bc80a5d

Browse files
authored
turn off building tests with cpuinfo (#2324)
1 parent d1c8118 commit bc80a5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

torchao/experimental/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ endif()
9595
if (NOT TARGET cpuinfo)
9696
# For some reason cpuinfo package has unused functions/variables
9797
# TODO (T215533422): fix upstream
98+
set(CPUINFO_BUILD_UNIT_TESTS OFF CACHE BOOL "Disable unit tests" FORCE)
99+
set(CPUINFO_BUILD_MOCK_TESTS OFF CACHE BOOL "Disable mock tests" FORCE)
100+
set(CPUINFO_BUILD_BENCHMARKS OFF CACHE BOOL "Disable benchmarks" FORCE)
98101
add_compile_options(-Wno-unused-function -Wno-unused-variable)
99102
include(FetchContent)
100103
FetchContent_Declare(cpuinfo

0 commit comments

Comments
 (0)