aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2019-11-30 02:09:14 +0000
committerBertrand Jacquin <bertrand@jacquin.bzh>2020-03-19 18:01:59 +0000
commit759970067c04bab479f9a923cfa593adfe0c87f2 (patch)
tree114fa940099948420d7f7d5b686dc5e39106a5ae
parentUse gentoo versioning (diff)
downloadmonero-759970067c04bab479f9a923cfa593adfe0c87f2.tar.xz
translations: use host compiler
Do not pass target compiler and compiler flags as generate_translations_header need to be created using host compiler and compiler flags
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 03ede0483..03e60cb1a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -451,7 +451,12 @@ ExternalProject_Add(generate_translations_header
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/translations"
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/translations"
STAMP_DIR ${LRELEASE_PATH}
- CMAKE_ARGS -DLRELEASE_PATH=${LRELEASE_PATH}
+ CMAKE_ARGS
+ -DCMAKE_C_COMPILER=$ENV{BUILD_CC}
+ -DCMAKE_CXX_COMPILER=$ENV{BUILD_CXX}
+ -DCMAKE_C_FLAGS=$ENV{BUILD_CFLAGS}
+ -DCMAKE_CXX_FLAGS=$ENV{BUILD_CXXFLAGS}
+ -DLRELEASE_PATH=${LRELEASE_PATH}
INSTALL_COMMAND cmake -E echo "")
include_directories("${CMAKE_CURRENT_BINARY_DIR}/translations")
add_subdirectory(external)