build-system/cmake: Specify C++ compiler when cross-compiling.
* guix/build/cmake-build-system.scm (configure)[args]: Add "-DCMAKE_CXX_COMPILER" when cross-compiling.master
parent
f3418f58dc
commit
38746d026c
|
@ -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"))
|
||||
|
|
Reference in New Issue