Skip to content

Commit

Permalink
Use correct language in call to enable_language in the plssvmHIPTarge…
Browse files Browse the repository at this point in the history
…ts.cmake file.
  • Loading branch information
breyerml committed Nov 26, 2024
1 parent 1f0e4e0 commit 309023a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,11 @@ configure_package_config_file(
"${PROJECT_BINARY_DIR}/plssvmConfig.cmake"
INSTALL_DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/plssvm/cmake
)
configure_package_config_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmHIPTargets.cmake.in"
"${PROJECT_BINARY_DIR}/plssvmHIPTargets.cmake"
INSTALL_DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/plssvm/cmake
)

## create and copy install-targets file
install(EXPORT plssvm_Targets
Expand All @@ -844,7 +849,7 @@ install(FILES
"${PROJECT_BINARY_DIR}/plssvmConfig.cmake"
"${PROJECT_BINARY_DIR}/plssvmConfigVersion.cmake"
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmCUDATargets.cmake"
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmHIPTargets.cmake"
"${PROJECT_BINARY_DIR}/plssvmHIPTargets.cmake"
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmOpenCLTargets.cmake"
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmOpenMPTargets.cmake"
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/plssvm/plssvmAdaptiveCppTargets.cmake"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ include(CMakeFindDependencyMacro)

# check if the HIP backend is available
if (TARGET plssvm::plssvm-HIP)
# enable HIP
enable_language(HIP)
# enable HIP or CUDA
enable_language(@PLSSVM_HIP_BACKEND_GPU_RUNTIME@)
find_dependency(HIP REQUIRED)
# set alias targets
add_library(plssvm::HIP ALIAS plssvm::plssvm-HIP)
Expand Down

0 comments on commit 309023a

Please sign in to comment.