Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop extra install rules #126

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading