Skip to content

Commit 776c56f

Browse files
committed
Add .lib part of the opencl-clang64.dll to install component
1 parent 4fef3fe commit 776c56f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,18 +259,24 @@ if (WIN32)
259259
"RC_PRODUCT_NAME=\"${RC_PRODUCT_NAME}\""
260260
"RC_PRODUCT_VERSION=\"${RC_FILE_VERSION}\""
261261
"RC_COPYRIGHT=\"Copyright ${RC_CHAR_C} 2018 Intel Corporation. All rights reserved.\"")
262+
263+
install (TARGETS ${TARGET_NAME}
264+
ARCHIVE DESTINATION lib
265+
COMPONENT ${TARGET_NAME}
266+
)
262267
elseif(UNIX)
263268
set_property(TARGET ${TARGET_NAME} APPEND_STRING PROPERTY
264269
COMPILE_DEFINITIONS LIBCOMMON_CLANG_NAME="$<TARGET_SONAME_FILE_NAME:${TARGET_NAME}>")
265270

266271
set_property(TARGET ${TARGET_NAME} APPEND_STRING PROPERTY
267272
LINK_FLAGS " -Wl,--no-undefined")
273+
274+
SET_LINUX_EXPORTS_FILE( ${TARGET_NAME} common_clang.map )
268275
endif(WIN32)
269276

270277
install(FILES common_clang.h
271278
DESTINATION include/cclang
272279
COMPONENT ${TARGET_NAME})
273280

274-
SET_LINUX_EXPORTS_FILE( ${TARGET_NAME} common_clang.map )
275281

276282
add_custom_target(deploy DEPENDS install-${TARGET_NAME})

0 commit comments

Comments
 (0)