diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-01-10 11:55:46 +0100 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-01-10 11:55:46 +0100 |
commit | d5dad4f0a2a1f92ca327a3c12389bed33dd5777e (patch) | |
tree | e3eaa2f499898ae79008e93306c212569fd07478 | |
parent | Merge pull request #3061 (diff) | |
parent | Fix translations header generation when cross-compilating (diff) | |
download | monero-d5dad4f0a2a1f92ca327a3c12389bed33dd5777e.tar.xz |
Merge pull request #3062
f035478d Fix translations header generation when cross-compilating (Guillaume LE VAILLANT)
-rw-r--r-- | CMakeLists.txt | 6 | ||||
-rw-r--r-- | translations/CMakeLists.txt | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bc1579db5..7b27c10bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -398,7 +398,11 @@ endif() add_definitions(-DAUTO_INITIALIZE_EASYLOGGINGPP) # 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") add_subdirectory(external) diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt index 36b72d68a..f74e63c76 100644 --- a/translations/CMakeLists.txt +++ b/translations/CMakeLists.txt @@ -28,6 +28,8 @@ cmake_minimum_required(VERSION 2.8.7) +project(translations) + add_executable(generate_translations_header generate_translations_header.c) find_program(LRELEASE lrelease) |