From 8ca936aea644c91b5ed913fb5eb036627748bd1f Mon Sep 17 00:00:00 2001 From: David Adam Date: Mon, 23 Dec 2019 22:18:51 +0800 Subject: [PATCH] cmake: use C++ extension options when checking features This matches the CMake default of extensions turned on. --- cmake/ConfigureChecks.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake index 665fd5935..5f09ee1b5 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_STANDARD}_STANDARD_COMPILE_OPTION}") + LIST(APPEND CMAKE_REQUIRED_FLAGS "${CMAKE_CXX${CMAKE_CXX_EXTENSION}_STANDARD_COMPILE_OPTION}") ENDIF() CHECK_CXX_SOURCE_COMPILES("