mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-23 11:09:41 -05:00
build-system/cmake: Specify C++ compiler when cross-compiling.
* guix/build/cmake-build-system.scm (configure)[args]: Add "-DCMAKE_CXX_COMPILER" when cross-compiling.
This commit is contained in:
parent
f3418f58dc
commit
38746d026c
1 changed files with 2 additions and 0 deletions
|
@ -67,6 +67,8 @@ (define* (configure #:key outputs (configure-flags '()) (out-of-source? #t)
|
|||
,@(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"))
|
||||
|
|
Loading…
Reference in a new issue