From 6fc68c8a66951bce7f2eefa1f8e41fdd0bf04718 Mon Sep 17 00:00:00 2001 From: Dmitry Babokin Date: Thu, 3 Jun 2021 23:00:42 -0700 Subject: [PATCH] Fix #2080: check that at least one target is enabled --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 48d77621b4..1fd7759140 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -242,6 +242,10 @@ find_package(FLEX 2.6 REQUIRED) set (ISPC_MASKS 1 8 16 32 64) +if (NOT X86_ENABLED AND NOT ARM_ENABLED AND NOT WASM_ENABLED AND NOT GENX_ENABLED) + message( FATAL_ERROR "Either X86, ARM, WASM or GENX targets need to be enabled.") +endif () + if (X86_ENABLED) list(APPEND ISPC_TARGETS sse2-i32x4 sse2-i32x8