Skip to content

Commit 5e48595

Browse files
intel-kzhavorosys_zuul
authored andcommitted
Cleanup cmake scripts
Change-Id: Icea31fd66e5ea1c54f4f5c97ba228688fb85a2fc
1 parent 44d81c0 commit 5e48595

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

IGC/VectorCompiler/cmake/spirv.cmake

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,19 @@ install(FILES
123123
)
124124

125125
elseif(NOT TARGET SPIRVDLL)
126+
if(DEFINED SPIRV_PREBUILD_DIR)
127+
set(PREBUILT_SPIRVDLL_PATH "${SPIRV_PREBUILD_DIR}/lib" )
128+
endif()
126129
if(DEFINED WIN32)
127130
set(SPIRVDLL_NAME "SPIRVDLL.dll")
128131
else()
129132
set(SPIRVDLL_NAME "libSPIRVDLL.so")
130133
endif()
131-
if(DEFINED SPIRV_PREBUILD_DIR)
132-
set(PREBUILT_SPIRVDLL_PATH "${SPIRV_PREBUILD_DIR}/lib" )
133-
endif()
134134
find_file(SPIRVDLL_LIB
135135
${SPIRVDLL_NAME}
136136
PATHS ${PREBUILT_SPIRVDLL_PATH}
137137
NO_DEFAULT_PATH
138-
)
138+
)
139139
if(NOT SPIRVDLL_LIB)
140140
message(FATAL_ERROR "[VC] Cannot find SPIRVDLL in prebuilds")
141141
endif()
@@ -151,11 +151,6 @@ elseif(NOT TARGET SPIRVDLL)
151151
DESTINATION $<CONFIG>/lh64
152152
RENAME ${INSTALL_SPRIRVDLL_NAME}
153153
)
154-
install(FILES ${SPIRVDLL_LIB}
155-
CONFIGURATIONS ReleaseInternal
156-
DESTINATION Release-Internal/lh64
157-
RENAME ${INSTALL_SPRIRVDLL_NAME}
158-
)
159154
endif()
160155
else()
161156
install(FILES

0 commit comments

Comments
 (0)