Skip to content

Commit 3e5f77e

Browse files
Nayef211Nayef Ahmed
andauthored
Update minimum C++ version to 17 (#2031)
Co-authored-by: Nayef Ahmed <[email protected]>
1 parent 569d48d commit 3e5f77e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ string(FIND "${CMAKE_CXX_FLAGS}" "-std=c++" env_cxx_standard)
2424
if(env_cxx_standard GREATER -1)
2525
message(
2626
WARNING "C++ standard version definition detected in environment variable."
27-
"PyTorch requires -std=c++14. Please remove -std=c++ settings in your environment.")
27+
"PyTorch requires -std=c++17. Please remove -std=c++ settings in your environment.")
2828
endif()
2929

30-
set(CMAKE_CXX_STANDARD 14)
30+
set(CMAKE_CXX_STANDARD 17)
3131
set(CMAKE_C_STANDARD 11)
3232

3333
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

0 commit comments

Comments
 (0)