diff options
author | Thorsten Alteholz <debian@alteholz.de> | 2018-06-03 16:19:38 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-06-03 16:25:32 +0200 |
commit | b9fff5b405751881f36a75b0e05b9355df327e2f (patch) | |
tree | 736ae666d4813fb2844cb9cf57b22cdb209a9673 /src | |
parent | 79908e1109e6de0e8703629a95041cc504aa2a6d (diff) | |
download | osmo-fl2k-b9fff5b405751881f36a75b0e05b9355df327e2f.tar.gz osmo-fl2k-b9fff5b405751881f36a75b0e05b9355df327e2f.tar.bz2 osmo-fl2k-b9fff5b405751881f36a75b0e05b9355df327e2f.zip |
enable multiarch build by means of GNUInstallDirs
This patch is taken from the osmo-fl2k debian package.
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1d788de..f63780a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -15,6 +15,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +include(GNUInstallDirs) + MACRO(LIBFL2K_APPEND_SRCS) LIST(APPEND libosmo-fl2k_srcs ${ARGV}) ENDMACRO(LIBFL2K_APPEND_SRCS) @@ -124,7 +126,7 @@ endif() # Install built library files & utilities ######################################################################## install(TARGETS ${INSTALL_TARGETS} - LIBRARY DESTINATION ${LIB_INSTALL_DIR} # .so/.dylib file - ARCHIVE DESTINATION ${LIB_INSTALL_DIR} # .lib file + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} # .so/.dylib file + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} # .lib file RUNTIME DESTINATION bin # .dll file ) |