mirror of
https://github.com/browsermt/bergamot-translator.git
synced 2024-09-11 05:35:33 +03:00
Fixed native builds while using wasm compatible sources
- main-mts and marian-decoder-new can't be used because it uses multi-threaded variant of Service class
This commit is contained in:
parent
4d4acf6b8b
commit
0be73705d9
@ -67,9 +67,9 @@ endif(COMPILE_WASM)
|
||||
|
||||
add_subdirectory(3rd_party)
|
||||
add_subdirectory(src)
|
||||
if(NOT COMPILE_WASM)
|
||||
add_subdirectory(app)
|
||||
endif()
|
||||
|
||||
if(COMPILE_WASM)
|
||||
add_subdirectory(wasm)
|
||||
else()
|
||||
add_subdirectory(app)
|
||||
endif(COMPILE_WASM)
|
||||
|
@ -1,8 +1,10 @@
|
||||
add_executable(bergamot-translator-app main.cpp)
|
||||
target_link_libraries(bergamot-translator-app PRIVATE bergamot-translator)
|
||||
|
||||
add_executable(service-cli main-mts.cpp)
|
||||
target_link_libraries(service-cli PRIVATE bergamot-translator)
|
||||
if (NOT USE_WASM_COMPATIBLE_SOURCES)
|
||||
add_executable(service-cli main-mts.cpp)
|
||||
target_link_libraries(service-cli PRIVATE bergamot-translator)
|
||||
|
||||
add_executable(marian-decoder-new marian-decoder-new.cpp)
|
||||
target_link_libraries(marian-decoder-new PRIVATE bergamot-translator)
|
||||
add_executable(marian-decoder-new marian-decoder-new.cpp)
|
||||
target_link_libraries(marian-decoder-new PRIVATE bergamot-translator)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user