mirror of
https://github.com/monero-project/monero.git
synced 2026-07-28 22:51:07 -07:00
cmake: add build translations option
This commit is contained in:
@@ -61,8 +61,12 @@ monero_private_headers(common
|
||||
monero_add_library(common
|
||||
${common_sources}
|
||||
${common_headers}
|
||||
${common_private_headers}
|
||||
DEPENDS generate_translations_header)
|
||||
${common_private_headers})
|
||||
|
||||
if(BUILD_TRANSLATIONS)
|
||||
add_dependencies(obj_common generate_translations_header)
|
||||
endif()
|
||||
|
||||
target_link_libraries(common
|
||||
PUBLIC
|
||||
cncrypto
|
||||
|
||||
@@ -33,7 +33,14 @@
|
||||
#include <map>
|
||||
#include "file_io_utils.h"
|
||||
#include "common/i18n.h"
|
||||
|
||||
#if __has_include("translation_files.h")
|
||||
#include "translation_files.h"
|
||||
#else
|
||||
static bool find_embedded_file(const std::string &name, std::string &data) {
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
#include <boost/system/error_code.hpp>
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
Reference in New Issue
Block a user