mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 12:19:03 +03:00
Merge pull request #3899 from sebasje/sebas/cmake
fix multiarch library path for Debian/Ubuntu
This commit is contained in:
commit
cb3a301f2c
1 changed files with 1 additions and 7 deletions
|
@ -134,13 +134,7 @@ if(NOT DEFINED CMAKE_INSTALL_LIBDIR OR (_libdir_set
|
||||||
AND NOT CMAKE_CROSSCOMPILING)
|
AND NOT CMAKE_CROSSCOMPILING)
|
||||||
if (EXISTS "/etc/debian_version") # is this a debian system ?
|
if (EXISTS "/etc/debian_version") # is this a debian system ?
|
||||||
if(CMAKE_LIBRARY_ARCHITECTURE)
|
if(CMAKE_LIBRARY_ARCHITECTURE)
|
||||||
if("${CMAKE_INSTALL_PREFIX}" MATCHES "^/usr/?$")
|
set(_LIBDIR_DEFAULT "lib/${CMAKE_LIBRARY_ARCHITECTURE}")
|
||||||
set(_LIBDIR_DEFAULT "lib/${CMAKE_LIBRARY_ARCHITECTURE}")
|
|
||||||
endif()
|
|
||||||
if(DEFINED _GNUInstallDirs_LAST_CMAKE_INSTALL_PREFIX
|
|
||||||
AND "${_GNUInstallDirs_LAST_CMAKE_INSTALL_PREFIX}" MATCHES "^/usr/?$")
|
|
||||||
set(__LAST_LIBDIR_DEFAULT "lib/${CMAKE_LIBRARY_ARCHITECTURE}")
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
else() # not debian, rely on CMAKE_SIZEOF_VOID_P:
|
else() # not debian, rely on CMAKE_SIZEOF_VOID_P:
|
||||||
if(NOT DEFINED CMAKE_SIZEOF_VOID_P)
|
if(NOT DEFINED CMAKE_SIZEOF_VOID_P)
|
||||||
|
|
Loading…
Reference in a new issue