diff options
author | Marius Bakke <mbakke@fastmail.com> | 2020-01-26 13:00:30 +0100 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2020-01-26 13:39:18 +0100 |
commit | 38746d026cb4179edc18cbb1d1472a0f4c96b5cc (patch) | |
tree | 4fb3a49d645eb35ac50c942d66746cec7668efb2 | |
parent | f3418f58dc6fc2698183a46dacdf01fe16d685f0 (diff) | |
download | guix-38746d026cb4179edc18cbb1d1472a0f4c96b5cc.tar guix-38746d026cb4179edc18cbb1d1472a0f4c96b5cc.tar.gz |
build-system/cmake: Specify C++ compiler when cross-compiling.
* guix/build/cmake-build-system.scm (configure)[args]: Add
"-DCMAKE_CXX_COMPILER" when cross-compiling.
-rw-r--r-- | guix/build/cmake-build-system.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guix/build/cmake-build-system.scm b/guix/build/cmake-build-system.scm index 9b1112f2d6..d1ff5071be 100644 --- a/guix/build/cmake-build-system.scm +++ b/guix/build/cmake-build-system.scm @@ -67,6 +67,8 @@ ,@(if target (list (string-append "-DCMAKE_C_COMPILER=" target "-gcc") + (string-append "-DCMAKE_CXX_COMPILER=" + target "-g++") (if (string-contains target "mingw") "-DCMAKE_SYSTEM_NAME=Windows" "-DCMAKE_SYSTEM_NAME=Linux")) |