mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00: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 @@
|
||||||
,@(if target
|
,@(if target
|
||||||
(list (string-append "-DCMAKE_C_COMPILER="
|
(list (string-append "-DCMAKE_C_COMPILER="
|
||||||
target "-gcc")
|
target "-gcc")
|
||||||
|
(string-append "-DCMAKE_CXX_COMPILER="
|
||||||
|
target "-g++")
|
||||||
(if (string-contains target "mingw")
|
(if (string-contains target "mingw")
|
||||||
"-DCMAKE_SYSTEM_NAME=Windows"
|
"-DCMAKE_SYSTEM_NAME=Windows"
|
||||||
"-DCMAKE_SYSTEM_NAME=Linux"))
|
"-DCMAKE_SYSTEM_NAME=Linux"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue