From edf10a77c894dbe80b8ea1d395e18274957e4900 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 14 May 2024 14:56:21 +1000 Subject: [PATCH] cpuid: don't build this tool for Windows There is a lot of topology, scheduling, and affinity code in here that doesn't currently translate to Windows. Just don't build it right now. --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e77ddfee..f8cf22af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -688,7 +688,13 @@ endif () ############################################################################### -foreach (tool backtrace cpuid crash log poisson macro scratch) +set(TOOL_BINARIES backtrace crash log poisson macro scratch) + +if (NOT WIN32) + list(APPEND TOOL_BINARIES cpuid) +endif() + +foreach (tool ${TOOL_BINARIES}) add_executable (util_${tool} tools/${tool}.cpp) set_target_properties (util_${tool} PROPERTIES OUTPUT_NAME ${tool}) target_link_libraries (util_${tool} cruft)