Skip to content

Commit

Permalink
find_package(RMM) can now be called multiple times safely (#811)
Browse files Browse the repository at this point in the history
Previously it would try to add the `rmm::Thrust` target multiple times causing errors as a target with that name already existed.

Authors:
  - Robert Maynard (https://github.com/robertmaynard)

Approvers:
  - Paul Taylor (https://github.com/trxcllnt)
  - Mark Harris (https://github.com/harrism)

URL: #811
  • Loading branch information
robertmaynard authored Jun 23, 2021
1 parent 55a9c0d commit aaba80a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ The goal of the [RMM](https://github.com/rapidsai/rmm) is to provide:

set(code_string
[=[
thrust_create_target(rmm::Thrust FROM_OPTIONS)
if(NOT TARGET rmm::Thrust)
thrust_create_target(rmm::Thrust FROM_OPTIONS)
endif()
]=])

rapids_export(
Expand Down

0 comments on commit aaba80a

Please sign in to comment.