cmake编译时使用终端的命令

execute_process(COMMAND lscpu
        COMMAND grep "Architecture"
        COMMAND sed "s/Architecture://g"
        COMMAND sed "s/ //g"
        OUTPUT_VARIABLE arch)
execute_process(COMMAND ln -sf libonnxruntime.so.1.15.1 libonnxruntime.so WORKING_DIRECTORY ./onnxruntime/lib)

你可能感兴趣的:(服务器,linux,前端)