File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ if( LIBCLC_STANDALONE_BUILD OR CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DI
50
50
endif ()
51
51
52
52
# Import required tools as targets
53
- foreach ( tool clang llvm-as llvm-link opt )
53
+ foreach ( tool IN ITEMS clang llvm-as llvm-link opt )
54
54
find_program ( LLVM_TOOL_${tool} ${tool} PATHS ${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH )
55
55
add_executable ( libclc::${tool} IMPORTED GLOBAL )
56
56
set_target_properties ( libclc::${tool} PROPERTIES IMPORTED_LOCATION ${LLVM_TOOL_${tool} } )
68
68
message (FATAL_ERROR "Clang is not enabled, but is required to build libclc in-tree" )
69
69
endif ()
70
70
71
- foreach ( tool clang llvm-as llvm-link opt )
71
+ foreach ( tool IN ITEMS clang llvm-as llvm-link opt )
72
72
add_executable (libclc::${tool} ALIAS ${tool} )
73
73
endforeach ()
74
74
endif ()
@@ -181,7 +181,7 @@ install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libclc.pc DESTINATION "${CMAKE_INSTAL
181
181
install ( DIRECTORY generic/include /clc DESTINATION "${CMAKE_INSTALL_INCLUDEDIR} " )
182
182
183
183
if ( ENABLE_RUNTIME_SUBNORMAL )
184
- foreach ( file subnormal_use_default subnormal_disable )
184
+ foreach ( file IN ITEMS subnormal_use_default subnormal_disable )
185
185
link_bc(
186
186
TARGET ${file}
187
187
INPUTS ${PROJECT_SOURCE_DIR} /generic/lib/${file} .ll
You can’t perform that action at this time.
0 commit comments