File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -102,13 +102,6 @@ if(LLVM_SPIRV_BUILD_EXTERNAL)
102
102
103
103
message (STATUS "Found LLVM: ${LLVM_VERSION} " )
104
104
105
- is_llvm_target_library ("SPIRV" spirv_present_result INCLUDED_TARGETS )
106
- if (spirv_present_result )
107
- message (STATUS "Found SPIR-V Backend" )
108
- set (SPIRV_BACKEND_FOUND TRUE )
109
- add_compile_definitions (LLVM_SPIRV_BACKEND_TARGET_PRESENT )
110
- endif ()
111
-
112
105
option (CCACHE_ALLOWED "allow use of ccache" TRUE )
113
106
find_program (CCACHE_EXE_FOUND ccache )
114
107
if (CCACHE_EXE_FOUND AND CCACHE_ALLOWED )
@@ -118,6 +111,13 @@ if(LLVM_SPIRV_BUILD_EXTERNAL)
118
111
endif ()
119
112
endif ()
120
113
114
+ is_llvm_target_library ("SPIRV" spirv_present_result INCLUDED_TARGETS )
115
+ if (spirv_present_result )
116
+ message (STATUS "Found SPIR-V Backend" )
117
+ set (SPIRV_BACKEND_FOUND TRUE )
118
+ add_compile_definitions (LLVM_SPIRV_BACKEND_TARGET_PRESENT )
119
+ endif ()
120
+
121
121
set (LLVM_SPIRV_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR} /include )
122
122
123
123
# first try locating SPIRV-Tools via pkgconfig (the old way)
You can’t perform that action at this time.
0 commit comments