Skip to content

Commit

Permalink
Drop extra install rules
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Lavrenov <[email protected]>
  • Loading branch information
ilya-lavrenov committed Jan 7, 2025
1 parent 34e6cfc commit 0bab365
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
14 changes: 3 additions & 11 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,9 @@ foreach(UTIL_LIB_NAME IN ITEMS Utils UtilsCpp)
install(
TARGETS ${UTIL_LIB_TARGET}
EXPORT OpenCL${UTIL_LIB_NAME}Targets
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT binary
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT binary
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT binary
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT binary
)
install(
DIRECTORY include/CL/Utils
Expand Down Expand Up @@ -114,13 +113,6 @@ foreach(UTIL_LIB_NAME IN ITEMS Utils UtilsCpp)
DESTINATION ${config_package_location}
COMPONENT binary
)

# For packaging the utils libraries
install(
TARGETS ${UTIL_LIB_TARGET}
DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT binary
)
endforeach()

if(OPENCL_SDK_BUILD_SAMPLES)
Expand Down
14 changes: 3 additions & 11 deletions lib/src/Extensions/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,9 @@ if (OPENCL_EXTENSION_LOADER_INSTALL)

install(TARGETS OpenCLExt
EXPORT OpenCLExtensionLoaderTargets
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT binary
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT binary
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT binary
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT binary
)

export(EXPORT OpenCLExtensionLoaderTargets
Expand Down Expand Up @@ -151,13 +150,6 @@ if (OPENCL_EXTENSION_LOADER_INSTALL)
DESTINATION ${OPENCL_EXTENSION_LOADER_CONFIG_PATH}
COMPONENT binary
)

# For packaging the extensions library
install(
TARGETS OpenCLExt
DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT binary
)
endif()

if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
Expand Down

0 comments on commit 0bab365

Please sign in to comment.