Skip to content

Conversation

@rijobro
Copy link
Contributor

@rijobro rijobro commented Jul 22, 2019

No description provided.

@KrisThielemans
Copy link
Member

KrisThielemans commented Jul 22, 2019 via email

@rijobro
Copy link
Contributor Author

rijobro commented Jul 22, 2019

No, just flags saying that NiftyReg was built with those libraries

Copy link
Member

@KrisThielemans KrisThielemans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some suggestions

# If niftyreg was bulit with OpenCL
if (NIFTYREG_BUILT_WITH_OPENCL)
find_package(OpenCL REQUIRED)
if (OpenCL_FOUND)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can dispense with that, as it's REQUIRED

find_package(OpenCL REQUIRED)
if (OpenCL_FOUND)
TARGET_LINK_LIBRARIES(Reg PUBLIC ${OpenCL_LIBRARIES})
INCLUDE_DIRECTORIES(${OpenCL_INCLUDE_DIRS})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally also target-specific, but ok

@KrisThielemans
Copy link
Member

@rijobro merge in master to see

@KrisThielemans KrisThielemans added this to the v3.0 milestone Apr 17, 2020
@rijobro
Copy link
Contributor Author

rijobro commented Apr 17, 2020

merging as it looks fine to me (plus I doubt Travis has openCL anyway).

@rijobro rijobro merged commit 740afe5 into master Apr 17, 2020
@rijobro rijobro deleted the NiftyReg_opencl branch April 17, 2020 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants