void-packages/srcpkgs/akonadi5/patches/protocolgen-cross.patch
Helmut Pozimski d6655e2dec New package: akonadi5-17.12.1
Closes: #10658 [via git-merge-pr]
2018-01-12 02:01:51 +01:00

13 lines
398 B
Diff

--- src/private/protocolgen/CMakeLists.txt 2018-01-09 20:34:31.345972552 +0100
+++ src/private/protocolgen/CMakeLists.txt 2018-01-09 20:45:14.393984830 +0100
@@ -1,5 +1,10 @@
project(protocolgen)
+IF(CMAKE_CROSSCOMPILING)
+ SET(CMAKE_CXX_COMPILER $ENV{CXX_host})
+ SET(CMAKE_CXX_FLAGS $ENV{XBPS_CXXFLAGS})
+ENDIF(CMAKE_CROSSCOMPILING)
+
set(protocolgen_SRCS
main.cpp
cppgenerator.cpp