google / highway

Performance-portable, length-agnostic SIMD with runtime dispatch
Apache License 2.0
3.96k stars 307 forks source link

Updated CMakeLists.txt to compile Highway in C++17 mode by default #2180

Closed johnplatts closed 1 month ago

johnplatts commented 1 month ago

Updated CMakeLists.txt to compile Google Highway in C++17 mode by default if CMAKE_CXX_STANDARD is not set and the C++ compiler supports C++17 mode.

With the changes made to CMakeLists.txt in this pull request, Google Highway will still be compiled in C++11 mode if CMAKE_CXX_STANDARD is set to 11 and Google Highway will still be compiled in C++14 mode if CMAKE_CXX_STANDARD is set to 14.