@@ -92,7 +92,6 @@ endif()
92
92
# Currently, release build of spirvdll is used to read spirv.
93
93
# For debugging, one has to build debug version locally and replace release library.
94
94
if (INSTALL_SPIRVDLL )
95
- if (NOT DEFINED SPIRV_PREBUILD_DIR AND NOT WIN32 )
96
95
include (ExternalProject )
97
96
set (MAKE_EXEC ${CMAKE_MAKE_PROGRAM} )
98
97
message (STATUS "[VC] SPIRVDLL_SRC = ${SPIRVDLL_SRC} " )
@@ -212,55 +211,4 @@ else()
212
211
)
213
212
214
213
endif (DEFINED SPIRVDLL_SRC )
215
-
216
- elseif (NOT TARGET SPIRVDLL )
217
- if (DEFINED SPIRV_PREBUILD_DIR )
218
- set (PREBUILT_SPIRVDLL_PATH "${SPIRV_PREBUILD_DIR} /lib" )
219
- endif ()
220
- if (DEFINED WIN32 )
221
- set (SPIRVDLL_NAME "SPIRVDLL.dll" )
222
- else ()
223
- set (SPIRVDLL_NAME "libSPIRVDLL.so" )
224
- endif ()
225
- find_file (SPIRVDLL_LIB
226
- ${SPIRVDLL_NAME}
227
- PATHS ${PREBUILT_SPIRVDLL_PATH}
228
- NO_DEFAULT_PATH
229
- )
230
- if (NOT SPIRVDLL_LIB )
231
- message (FATAL_ERROR "[VC] Cannot find SPIRVDLL in prebuilds" )
232
- endif ()
233
- message (STATUS "[VC] Found SPIRVDLL: ${SPIRVDLL_LIB} " )
234
- if (WIN32 )
235
- if ("${vc_uses_custom_spirv} " STREQUAL "True" )
236
- set (INSTALL_SPRIRVDLL_NAME "SPIRVDLL.dll" )
237
- if ("${_cpuSuffix} " STREQUAL "32" )
238
- set (INSTALL_SPRIRVDLL_NAME "SPIRVDLL32.dll" )
239
- endif ()
240
- install (FILES ${SPIRVDLL_LIB}
241
- CONFIGURATIONS Debug Release
242
- DESTINATION $< CONFIG> /lh64
243
- RENAME ${INSTALL_SPRIRVDLL_NAME}
244
- )
245
- endif ()
246
- else ()
247
- install (FILES
248
- ${SPIRVDLL_LIB}
249
- DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}
250
- COMPONENT igc-core
251
- )
252
- endif ()
253
- else ()
254
- get_target_property (SPIRVDLL_IMPORTED SPIRVDLL IMPORTED )
255
- if (SPIRVDLL_IMPORTED )
256
- message (STATUS "[VC] SPIRVDLL is already imported" )
257
- else ()
258
- message (STATUS "[VC] SPIRVDLL will be built in-tree" )
259
- install (FILES
260
- $< TARGET_FILE:SPIRVDLL>
261
- DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}
262
- COMPONENT igc-core
263
- )
264
- endif ()
265
- endif ()
266
214
endif (INSTALL_SPIRVDLL )
0 commit comments