cmake: use correct variable for C++ compiler flags

Broken in 8ca936aea6
This commit is contained in:
David Adam 2020-01-02 22:05:45 +08:00
parent 89880891d0
commit 5df84c1998

View File

@ -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("