-
Notifications
You must be signed in to change notification settings - Fork 205
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
volk CMakeLists.txt uses CMAKE_INSTALL_LIBDIR without including the 'GNUInstallDirs' module #723
Comments
I would expect that Lines 199 to 201 in f2fb33c
needs an update here. e.g. we could use something like: include(GNUInstallDirs) How does that affect custom install prefixes? e.g. a conda prefix might not differentiate between the different suffixes. |
@jdemel - instead of including the module In that case you'll also need the code above that, where they set the variables 'REDHAT' and 'SLACKWARE'. Franco |
I would really prefer to use How would this go along with a conda environment? conda envs seem to use suffix-less folders. How should CMake be configured in these cases? |
The other day I thought about asking @willcode about this issue, since I think he runs Fedora Core too, so he might already have figured out a way to deal with the 'lib64' suffix in Volk. As per conda my go-to person is @ryanvolz ,since he knows it inside and out, and he might have a recommendation about using Franco |
I've had to override So bottom line, include |
GNUInstallDirs seems to be the way to go. From the docs:
I wanted to write about what to do in detail but decided a PR with the necessary changes is actually the faster way. Thus see #742 |
I am running Linux Fedora Core here, where for 64bit libraries LIBDIR is expected have the suffix '64' (i.e.
/usr/local/lib64
).I noticed today that instead volk installed the shared library and the cmake config files under
/usr/local/lib
.I then looked at the volk configuration for cmake (
CMakeLists.txt
), and I saw that there's code there to decide betweenlib
vslib64
(https://github.com/gnuradio/volk/blob/main/CMakeLists.txt#L205-L210), however that codes uses the variableCMAKE_INSTALL_LIBDIR
.According to the cmake documentation (https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html) that variable is defined in the
GNUInstallDirs
module, but I don't see that cmake module included anywhere, and indeed when I added amessage()
statement to print the value ofCMAKE_INSTALL_LIBDIR
right before the check above, the value turned out to be empty.Thanks,
Franco
The text was updated successfully, but these errors were encountered: