-
Notifications
You must be signed in to change notification settings - Fork 63
Update driver install dir to follow cmake install prefix #1792
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
Conversation
There seem to be build/test issues, I'll look into this. |
88d7bb6
to
89ce414
Compare
I've now reworked this whole thing. The basic idea is to always use the configurable I added some CMake statements to also be able to use built drivers from the build-dir directly in tests by copying the The logic should work for Gnu-install-dir-aware installations as well es MacOS, or Windows. I included some Clang-Tidy related changes as well. 😇 BTW: Are there any plans to include C++17, or C++20 dependent code? The return type of Best, Jan |
OMG, many thanks @jkohnert ! |
@GillesDuvert thanks for having a look at this. The failing tests were obviously unintended and I actually thought, I had fixed the problem. I'll have another look as soon as I have time. |
89ce414
to
33ee711
Compare
bac76ad
to
b53b4a7
Compare
2252a48
to
ac55501
Compare
ac55501
to
2d141d8
Compare
@GillesDuvert I think, this is OK now: There are still some tests failing for MacOS, but they seem unrelated, at least to me. For tests to run on Linux/Mac the patch now sets the "GDL_DRV_DIR" environment variable. I'm not sure, if this is OK, if not, I'll have to rework the include paths search to consider the paths the compiled files are located in... For now, I consider this OK and ready for review. 😄 Best, Jan |
test_delvarrnew and test_shmap do not pass on OSX (in addition to previous unrelated test that did not pass)
note that /bin/bash does not exist on OSX. |
Thanks again, @GillesDuvert; I'll take another look into this. Unfortuately, I do not have access to a MacOS maschine; I hope to get a clue, though. 😁 |
@jkohnert : |
@GillesDuvert I also sent a patch to them being unresponded to neither in github nor sourceforge. There seems liitle to no activity in the project; so I'm not sure if the package is still maintained, too. If you're going to drop the dependency, this PR can be closed. Those other changes your mention are only some small efforts to modernise the code base. Since I'm using CLion here, such things are marked in the IDE and can be fixed easily. But it's not worth keeping this PR just for some moderinsations; I could make another PR doing things like that. 😁. |
OK, no plplot dependency anymore -- thanks anyway, @jkohnert . Closing. |
When defining
GDL_LIB_DIR
, the install process does not take into account a setCMAKE_INSTALL_PREFIX
. I implemented this patch as part of the Arch-Linux AUR package, since having*.so
files in/usr/share/
is considered bad packaging by the Arch-Linux guidlines.Once applied, setting
GDL_LIB_DIR
is compatible toGDL_DATA_DIR
(f.e.lib/gnudatalanguage
, andshare/gnudatalanguage
), and both locations will respect a setCMAKE_INSTALL_PREFIX
(f.e/usr/
), so the install dirs will be f.e./usr/lib/gnudatalanguage
, and/usr/share/gnudatalanguage
, respectively.