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)