From 301039af2d5524de9c61846726e5e7fea8953dc9 Mon Sep 17 00:00:00 2001 From: namniav <68486394+namniav@users.noreply.github.com> Date: Tue, 25 Jul 2023 14:41:59 +0800 Subject: [PATCH] Fix wrong condition for warning CMAKE_CXX_EXTENSION --- modules.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.cmake b/modules.cmake index a408266..7a77ca1 100644 --- a/modules.cmake +++ b/modules.cmake @@ -37,7 +37,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") if (NOT DEFINED CMAKE_CXX_EXTENSIONS) set(CMAKE_CXX_EXTENSIONS OFF) - elseif (NOT CMAKE_CXX_EXTENSIONS) + elseif (CMAKE_CXX_EXTENSIONS) message( WARNING "Clang requires CMAKE_CXX_EXTENSIONS to be set to false to use modules.")