|
|
@ -22,13 +22,15 @@ if(NOT EXISTS ${openfst_BUILD}) |
|
|
|
execute_process( |
|
|
|
COMMAND cmake -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/patch/openfst ${LIB_BASE_DIR}/openfst-src |
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} |
|
|
|
) |
|
|
|
RESULT_VARIABLE configure_result1) |
|
|
|
|
|
|
|
message(STATUS "${BoldGreen}configure openfst${ColourReset}") |
|
|
|
#./configure --prefix=${openfst_SOURCE_DIR}/build --enable-static --disable-shared --with-pic |
|
|
|
execute_process( |
|
|
|
COMMAND ./configure --prefix=${openfst_BUILD} --with-pic |
|
|
|
WORKING_DIRECTORY ${openfst_ROOT} |
|
|
|
RESULT_VARIABLE configure_result) |
|
|
|
message(FATAL_ERROR "${BoldRed}openfst项目构建不成功!${configure_result} ${configure_result1}${ColourReset}") |
|
|
|
if(configure_result) |
|
|
|
message(FATAL_ERROR "${BoldRed}openfst项目构建不成功! ${ColourReset}") |
|
|
|
endif () |
|
|
|