diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake index 5f09ee1b5..be696da71 100644 --- a/cmake/ConfigureChecks.cmake +++ b/cmake/ConfigureChecks.cmake @@ -183,7 +183,7 @@ CMAKE_POP_CHECK_STATE() # standards flag. # Also see https://github.com/fish-shell/fish-shell/issues/5865 IF(NOT POLICY CMP0067) - LIST(APPEND CMAKE_REQUIRED_FLAGS "${CMAKE_CXX${CMAKE_CXX_EXTENSION}_STANDARD_COMPILE_OPTION}") + LIST(APPEND CMAKE_REQUIRED_FLAGS "${CMAKE_CXX${CMAKE_CXX_STANDARD}_EXTENSION_COMPILE_OPTION}") ENDIF() CHECK_CXX_SOURCE_COMPILES("