mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 06:43:28 +01:00
Fix translations header generation when cross-compilating
Define generate_translations_header as an external project to be able to use the compilation toolchain for the host instead of the toolchain for the target.
This commit is contained in:
parent
a529f0a6c9
commit
f035478d35
@ -366,7 +366,11 @@ endif()
|
|||||||
add_definitions(-DAUTO_INITIALIZE_EASYLOGGINGPP)
|
add_definitions(-DAUTO_INITIALIZE_EASYLOGGINGPP)
|
||||||
|
|
||||||
# Generate header for embedded translations
|
# Generate header for embedded translations
|
||||||
add_subdirectory(translations)
|
include(ExternalProject)
|
||||||
|
ExternalProject_Add(generate_translations_header
|
||||||
|
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/translations"
|
||||||
|
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/translations"
|
||||||
|
INSTALL_COMMAND cmake -E echo "")
|
||||||
include_directories("${CMAKE_CURRENT_BINARY_DIR}/translations")
|
include_directories("${CMAKE_CURRENT_BINARY_DIR}/translations")
|
||||||
|
|
||||||
add_subdirectory(external)
|
add_subdirectory(external)
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
|
|
||||||
cmake_minimum_required(VERSION 2.8.7)
|
cmake_minimum_required(VERSION 2.8.7)
|
||||||
|
|
||||||
|
project(translations)
|
||||||
|
|
||||||
add_executable(generate_translations_header generate_translations_header.c)
|
add_executable(generate_translations_header generate_translations_header.c)
|
||||||
|
|
||||||
find_program(LRELEASE lrelease)
|
find_program(LRELEASE lrelease)
|
||||||
|
Loading…
Reference in New Issue
Block a user