Skip to content

Commit a8d7ec9

Browse files
committed
check arg ARCH_SUFFIX FILES
1 parent 82c9792 commit a8d7ec9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libclc/cmake/modules/AddLibclc.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ endfunction()
138138
function(create_compile_targets compile_tgts)
139139
cmake_parse_arguments( ARG "" "ARCH_SUFFIX" "FILES" ${ARGN} )
140140

141+
if( NOT ARG_ARCH_SUFFIX OR NOT ARG_FILES )
142+
message( FATAL_ERROR "Must provide ARCH_SUFFIX, and FILES" )
143+
endif()
144+
141145
set( tgts )
142146
foreach( file IN LISTS ARG_FILES )
143147
cmake_path( GET file STEM stem )

0 commit comments

Comments
 (0)