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

Shipped XRootD CMake configuration doesn't work #1194

Closed
bbockelm opened this issue May 14, 2020 · 5 comments
Closed

Shipped XRootD CMake configuration doesn't work #1194

bbockelm opened this issue May 14, 2020 · 5 comments

Comments

@bbockelm
Copy link
Contributor

Tried using the shipped CMake config today for a new module I was working on -- effectively, it doesn't appear to work.

First, when one does:

find_package( xrootd REQUIRED )

On RHEL it'll search in /usr/share/xrootd/cmake/ for files named xrootdConfig.cmake or xrootd-config.cmake (case-sensitive). The file is currently named FindXRootD.cmake, which will never match. If you want:

find_package( XRootD REQUIRED )

then we need to move the file to /usr/share/XRootD/cmake/XRootD-config.cmake.

We also need to have the _FOUND variables to always be set and match case (i.e., XRootD_FOUND should always be set to true or false).

Finally, there's a typo breaking the XROOTD_PLUGIN_VERSION mechanism -- there's an extra comma , after the variable name. This appears to work:

SET( XROOTD_PLUGIN_VERSION 4 )
@simonmichal
Copy link
Contributor

Hi Brian,

I replaced the FindXRootD.cmake with XRootDConfig.cmake in 4.12.0:
25bf0ba
https://github.com/xrootd/xrootd/blob/master/docs/ReleaseNotes.txt#L49

Against which version were you testing?

Regarding the *_FOUND variables and the disruptive comma, this shall be fixed!

Cheers,
Michal

@simonmichal
Copy link
Contributor

@bbockelm : I just pushed 4fba4a1, it should fix the problems you pointed out.

Could you give it a try? If you build the project you will find the XRootD config module at build/cmake/XRootDConfig.cmake, by default it is installed in /usr/share/xrootd/cmake/XRootDConfig.cmake.

Thanks!

@bbockelm
Copy link
Contributor Author

@simonmichal - 4fba4a1 has a misspelling in the first hunk. SER should be SET.

@simonmichal
Copy link
Contributor

@bbockelm : fixed: a585e5f, thanks for pointing it out!

@abh3
Copy link
Member

abh3 commented May 18, 2020

I am closing this as it appears to be fixed.

@abh3 abh3 closed this as completed May 18, 2020
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

No branches or pull requests

3 participants