Skip to content

Commit

Permalink
Fix #2080: check that at least one target is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Babokin committed Jun 4, 2021
1 parent 2cf7994 commit 6fc68c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6fc68c8

Please sign in to comment.