csukuangfj / optimized_transducer

Memory efficient transducer loss computation
Other
68 stars 12 forks source link

fix for CMakeLists.txt #22

Closed luomingshuang closed 2 years ago

luomingshuang commented 2 years ago

When I run make -j in the build dir, there is an error happens: error: #error C++14 or later compatible compiler is required to use ATen.. So I add the following two commands to CMakeLists.txt and the make -j process can run successfully.

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

I'm not sure if the above two commands are necesary for the CMakeLists.txt in all environments.

csukuangfj commented 2 years ago

Thanks!