-
Notifications
You must be signed in to change notification settings - Fork 33
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
How to use DCMAKE_INSTALL_LIBDIR flag in cmake? #14
Comments
Hi Kevin, I’m not a cmake expert, but I suspect you mean -DCMAKE_INSTALL_LIB_DIR (note the underscore). I can’t try this since I don’t have access to a computer right now. On a more general note, it may be easier to distribute the c lib as a separate package from python (e.g. python-libmsym), and add a dependency, since the cmake python options are meant to handle cases here libmsym.so can’t be found by the loader (which it should in /usr/lib64). Also the plan was to add bindings for more languages at some point. /M |
Hello, I just tried -DCMAKE_INSTALL_LIB_DIR, it does not seems to do anything. For splitting package, you mean to create a 2 package that have -DMSYM_BUILD_PYTHON:BOOL=ON and -DMSYM_BUILD_PYTHON:BOOL=OFF and called the BOOL=ON python-libmsym? |
The standard cmake flag is |
Even with or %cmake -DMSYM_BUILD_PYTHON:BOOL=ON could not get it to install to /usr/lib64 only the below flag works. %cmake -DMSYM_BUILD_PYTHON:BOOL=ON |
@badshah400 @kevinsmia1939 |
Alright, thanks. |
Hello,
I am trying to package libmsym into openSUSE Leap and Tumbleweed.
I use cmake and gcc to compile the package.
I tried add the cmake flag as follow:
%cmake -DMSYM_BUILD_PYTHON:BOOL=ON
-DCMAKE_INSTALL_PREFIX=/usr/lib64
Which would place the library in /usr/lib64
However, the openSUSE's repository maintainer noticed that the flag is not correctly labeled, it should instead be
%cmake -DMSYM_BUILD_PYTHON:BOOL=ON
-DCMAKE_INSTALL_LIBDIR=/usr/lib64
For placing library in /usr/lib64
But -DCMAKE_INSTALL_LIBDIR don't seems to do anything.
Thanks.
https://build.opensuse.org/request/show/795267
The text was updated successfully, but these errors were encountered: