mdavidsaver / cmake4epics

support for using CMake to find EPICS and build IOCs
Other
6 stars 3 forks source link

Add multiarch support #3

Open mark0n opened 6 years ago

mark0n commented 6 years ago

We might want to add multiarch support for Debian systems. Currently libexample.so.1.2 gets installed into /usr/lib/ with a symlink in /usr/lib/epics/lib/linux-x86_64/libexample.so.

To support multiarch, we might want to install the library into /usr/lib/x86_64-linux-gnu/libexample.so.1.2 instead. Again a symlink pointing to the library would go into /usr/lib/epics/linux-x86_64/libexample.so.

The CMAKE_INSTALL_LIBDIR variabel set by the GNUInstallDirs CMake module might help us to accomplish this.