aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/suitesparse-mongoose-cmake.patch
blob: e5062f9aaa1d5252ba179752651850758aa7d156 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Fix required by suitesparse to build Mongoose

The CMakeLists.txt of Mongoose assumes that SuiteSparse_config has been
installed into the suitesparse source directory, which is not the case
for us, as we are building suitesparse out-of-tree.

SuiteSparse_config can instead be found in the ${CMAKE_INSTALL_PREFIX}
directory.

diff --git a/Mongoose/CMakeLists.txt b/Mongoose/CMakeLists.txt
index 7e134ab..76fa9e2 100644
--- a/Mongoose/CMakeLists.txt
+++ b/Mongoose/CMakeLists.txt
@@ -148,10 +148,10 @@ set(CMAKE_CXX_STANDARD 11)
 #set(CMAKE_CXX_STANDARD_REQUIRED ON)

 # determine which SuiteSparse_config to use
-if (EXISTS ${PROJECT_SOURCE_DIR}/../SuiteSparse_config)
-    message(STATUS "External ../SuiteSparse_config" ${BoldBlue} " found" ${ColourReset} ".")
+if (EXISTS ${CMAKE_INSTALL_PREFIX})
+    message(STATUS "External SuiteSparse_config" ${BoldBlue} " found" ${ColourReset} ".")
     set ( SUITESPARSE_CONFIG_DIR ${PROJECT_SOURCE_DIR}/../SuiteSparse_config )
-    link_directories ( ${PROJECT_SOURCE_DIR}/../lib )
+    link_directories ( ${CMAKE_INSTALL_PREFIX}/lib )
     message ( STATUS "Note: ../SuiteSparse_config must be compiled before compiling Mongoose" )
     set ( SUITESPARSE_CONFIG_LIBRARY suitesparseconfig )
 else ()
ate to 2.1.0....* gnu/packages/libusb.scm (libplist): Update to 2.1.0. [source]: Use GIT-FETCH and GIT-FILE-NAME. [arguments]: Add ‘configure-later’ phase. [native-inputs]: Add autoconf, automake, and libtool. Tobias Geerinckx-Rice 2019-09-06Merge branch 'master' into core-updatesMark H Weaver 2019-08-30gnu: libusb-compat: Don't use NAME in source URI....* gnu/packages/libusb.scm (libusb-compat)[source]: Hard-code NAME. Tobias Geerinckx-Rice 2019-08-30gnu: libusb: Update to 1.0.23....* gnu/packages/libusb.scm (libusb): Update to 1.0.23. Tobias Geerinckx-Rice 2019-05-25Merge branch 'staging' into core-updatesMarius Bakke 2019-05-01Merge branch 'master' into core-updatesMarius Bakke 2019-04-30gnu: libplist: Run tests sequentially....Fixes <https://bugs.gnu.org/35501>. Reported by Brendan Tildesley <mail@brendan.scot>. * gnu/packages/libusb.scm (libplist)[arguments]: New field. Ludovic Courtès 2019-04-25gnu: libimobiledevice: Edit description....* gnu/packages/libusb.scm (libimobiledevice)[description]: Fix grammar & spelling. Tobias Geerinckx-Rice 2019-03-23Merge branch 'staging' into core-updatesMarius Bakke 2019-03-17gnu: libimobiledevice: Build against OpenSSL 1.0....* gnu/packages/libusb.scm (libimobiledevice)[propagated-inputs]: Change from OPENSSL to OPENSSL-1.0. Marius Bakke 2019-03-15gnu: Update libimobiledevice.org home pages....* gnu/packages/libusb.scm (libplist, libusbmuxd, libimobiledevice, ifuse)[source, home-page]: Use HTTPS. Marius Bakke 2019-02-08gnu: Add usbmuxd....* gnu/packages/libusb.scm (usbmuxd): New variable. Danny Milosavljevic 2019-02-08gnu: Add ifuse....* gnu/packages/libusb.scm (ifuse): New variable. Danny Milosavljevic 2019-02-08gnu: libimobiledevice: Propagate "libplist"....* gnu/packages/libusb.scm (libimobiledevice)[propagated-inputs]: Add libplist. [inputs]: Remove libplist. Danny Milosavljevic 2019-01-18gnu: Add libimobiledevice....* gnu/packages/libusb.scm (libimobiledevice): New variable. Ricardo Wurmus 2019-01-18gnu: Add libusbmuxd....* gnu/packages/libusb.scm (libusbmuxd): New variable. Ricardo Wurmus 2019-01-18gnu: Add libplist....* gnu/packages/libusb.scm (libplist): New variable. Ricardo Wurmus 2019-01-18gnu: libusb.scm: Use license: prefix....* gnu/packages/libusb.scm: Use "license:" prefix. Ricardo Wurmus 2019-01-15gnu: Separate Python core packages from the rest....* gnu/packages/python.scm: Move hundreds of package definitions from here... * gnu/packages/python-xyz.scm: ...to this new module. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu/packages/ada.scm, gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/audio.scm, gnu/packages/backup.scm, gnu/packages/benchmark.scm, gnu/packages/bioinformatics.scm, gnu/packages/bittorrent.scm, gnu/packages/calendar.scm, gnu/packages/check.scm, gnu/packages/chemistry.scm, gnu/packages/cluster.scm, gnu/packages/compression.scm, gnu/packages/connman.scm, gnu/packages/crypto.scm, gnu/packages/cups.scm, gnu/packages/databases.scm, gnu/packages/dav.scm, gnu/packages/direct-connect.scm, gnu/packages/disk.scm, gnu/packages/django.scm, gnu/packages/dlang.scm, gnu/packages/docker.scm, gnu/packages/ebook.scm, gnu/packages/elf.scm, gnu/packages/emacs.scm, gnu/packages/emulators.scm, gnu/packages/engineering.scm, gnu/packages/enlightenment.scm, gnu/packages/finance.scm, gnu/packages/fltk.scm, gnu/packages/fontutils.scm, gnu/packages/freedesktop.scm, gnu/packages/game-development.scm, gnu/packages/games.scm, gnu/packages/geo.scm, gnu/packages/gl.scm, gnu/packages/glib.scm, gnu/packages/gnome.scm, gnu/packages/gnupg.scm, gnu/packages/gnuzilla.scm, gnu/packages/graph.scm, gnu/packages/graphics.scm, gnu/packages/graphviz.scm, gnu/packages/gtk.scm, gnu/packages/ham-radio.scm, gnu/packages/image-processing.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/irc.scm, gnu/packages/jrnl.scm, gnu/packages/julia.scm, gnu/packages/kde-frameworks.scm, gnu/packages/key-mon.scm, gnu/packages/libffi.scm, gnu/packages/libreoffice.scm, gnu/packages/libusb.scm, gnu/packages/lirc.scm, gnu/packages/logging.scm, gnu/packages/machine-learning.scm, gnu/packages/mail.scm, gnu/packages/mate.scm, gnu/packages/maths.scm, gnu/packages/medical.scm, gnu/packages/messaging.scm, gnu/packages/monitoring.scm, gnu/packages/mp3.scm, gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/networking.scm, gnu/packages/nutrition.scm, gnu/packages/openldap.scm, gnu/packages/openstack.scm, gnu/packages/package-management.scm, gnu/packages/password-utils.scm, gnu/packages/patchutils.scm, gnu/packages/pdf.scm, gnu/packages/photo.scm, gnu/packages/polkit.scm, gnu/packages/protobuf.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/qt.scm, gnu/packages/rdf.scm, gnu/packages/ruby.scm, gnu/packages/search.scm, gnu/packages/selinux.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/simulation.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/storage.scm, gnu/packages/sync.scm, gnu/packages/terminals.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tls.scm, gnu/packages/tor.scm, gnu/packages/tryton.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/virtualization.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wicd.scm, gnu/packages/xdisorg.scm, gnu/packages/xorg.scm: Update module references. Ricardo Wurmus 2018-11-05gnu: libmtp: Update to 1.1.16....* gnu/packages/libusb.scm (libmtp): Update to 1.1.16. Marius Bakke