File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -23,19 +23,21 @@ endif()
23
23
add_custom_target (test -lit COMMAND "${LLVM_LIT_PATH} "
24
24
"${CMAKE_CURRENT_BINARY_DIR} " -v )
25
25
26
- macro (add_comgr_lit_binary name )
27
- add_executable ("${name} " "comgr-sources/${name} .c" )
28
- set_target_properties ("${name} " PROPERTIES
29
- C_STANDARD 99
30
- C_STANDARD_REQUIRED Yes
31
- C_EXTENSIONS No )
26
+ macro (add_comgr_lit_binary name lang )
27
+ add_executable ("${name} " "comgr-sources/${name} .${lang} " )
28
+ if (${lang} STREQUAL "c" )
29
+ set_target_properties ("${name} " PROPERTIES
30
+ C_STANDARD 99
31
+ C_STANDARD_REQUIRED Yes
32
+ C_EXTENSIONS No )
33
+ endif ()
32
34
target_link_libraries ("${name} " amd_comgr )
33
35
add_dependencies (check-comgr "${name} " )
34
36
endmacro ()
35
37
36
38
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
37
39
38
- add_comgr_lit_binary (source -to-bc-with-dev-libs )
39
- add_comgr_lit_binary (spirv-translator )
40
+ add_comgr_lit_binary (source -to-bc-with-dev-libs c )
41
+ add_comgr_lit_binary (spirv-translator c )
40
42
41
43
add_dependencies (check-comgr test -lit )
You can’t perform that action at this time.
0 commit comments