no-debian-multiarch.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --- a/CMakeLists.txt 2015-04-17 04:27:51.000000000 +0200
  2. +++ b/CMakeLists.txt 2015-05-20 20:59:17.895041760 +0200
  3. @@ -39,14 +39,9 @@
  4. SET(CMAKE_VERBOSE_MAKEFILE "false")
  5. set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMake/")
  6. -INCLUDE (GNUInstallDirs OPTIONAL)
  7. -# support old CMake without GNUInstallDirs
  8. -if (NOT CMAKE_INSTALL_FULL_LIBDIR)
  9. - set (CMAKE_INSTALL_FULL_LIBDIR "${CMAKE_INSTALL_PREFIX}/lib")
  10. - set (BEIGNET_LIBRARY_ARCHITECTURE "")
  11. -else (NOT CMAKE_INSTALL_FULL_LIBDIR)
  12. - set (BEIGNET_LIBRARY_ARCHITECTURE "${CMAKE_LIBRARY_ARCHITECTURE}")
  13. -endif (NOT CMAKE_INSTALL_FULL_LIBDIR)
  14. +
  15. +set (CMAKE_INSTALL_FULL_LIBDIR "${CMAKE_INSTALL_PREFIX}/lib")
  16. +set (BEIGNET_LIBRARY_ARCHITECTURE "")
  17. if (NOT LIB_INSTALL_DIR)
  18. set (LIB_INSTALL_DIR "${CMAKE_INSTALL_FULL_LIBDIR}")
  19. @@ -55,17 +50,7 @@
  20. set (BEIGNET_INSTALL_DIR "${LIB_INSTALL_DIR}/beignet/")
  21. endif (NOT BEIGNET_INSTALL_DIR)
  22. -# allow co-installation of 32- and 64-bit versions:
  23. -# https://wiki.debian.org/Multiarch
  24. -if (BEIGNET_INSTALL_DIR STREQUAL "${CMAKE_INSTALL_PREFIX}/lib/beignet/")
  25. - set (ICD_FILE_NAME "intel-beignet.icd")
  26. -else (BEIGNET_INSTALL_DIR STREQUAL "${CMAKE_INSTALL_PREFIX}/lib/beignet/")
  27. - if (BEIGNET_LIBRARY_ARCHITECTURE STREQUAL "")
  28. - set (ICD_FILE_NAME "intel-beignet.icd")
  29. - else (BEIGNET_LIBRARY_ARCHITECTURE STREQUAL "")
  30. - set (ICD_FILE_NAME "intel-beignet-${BEIGNET_LIBRARY_ARCHITECTURE}.icd")
  31. - endif (BEIGNET_LIBRARY_ARCHITECTURE STREQUAL "")
  32. -endif (BEIGNET_INSTALL_DIR STREQUAL "${CMAKE_INSTALL_PREFIX}/lib/beignet/")
  33. +set (ICD_FILE_NAME "intel-beignet.icd")
  34. # Force Release with debug info
  35. if (NOT CMAKE_BUILD_TYPE)