Skip to content

Commit

Permalink
Merge pull request #452 from STEllAR-GROUP/add_kokkos_to_tool_targets
Browse files Browse the repository at this point in the history
Add Kokkos dependency to tool targets in Kokkos builds
  • Loading branch information
G-071 authored Jul 28, 2023
2 parents dfb1c9a + 25e6d41 commit a48d091
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,24 @@
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)


################################################################################
# Additional dependencies as a workaround: These ensure the sycl libs are found
################################################################################

if(OCTOTIGER_WITH_KOKKOS)
list(APPEND dependencies_workaround Kokkos::kokkos )
else()
list(APPEND dependencies_workaround )
endif()

################################################################################
# Set up bfilter target
################################################################################
add_hpx_executable(
bfilter
DEPENDENCIES
Silo::silo Boost::boost Boost::program_options
Silo::silo Boost::boost Boost::program_options ${dependencies_workaround}
SOURCES
bfilter/bfilter.cpp
)
Expand All @@ -34,7 +45,7 @@ endif()
add_hpx_executable(
silo_convert
DEPENDENCIES
Silo::silo Boost::boost Boost::program_options
Silo::silo Boost::boost Boost::program_options ${dependencies_workaround}
SOURCES
silo_convert/plain_silo.cpp
silo_convert/silo_convert.cpp
Expand All @@ -49,7 +60,7 @@ add_hpx_executable(
add_hpx_executable(
silo_post
DEPENDENCIES
Silo::silo Boost::boost Boost::program_options
Silo::silo Boost::boost Boost::program_options ${dependencies_workaround}
SOURCES
silo_post/silo_post.cpp
)
Expand Down

0 comments on commit a48d091

Please sign in to comment.