Skip to content

Commit

Permalink
Fix wrong condition for warning CMAKE_CXX_EXTENSION
Browse files Browse the repository at this point in the history
  • Loading branch information
namniav authored and vitaut committed Jul 25, 2023
1 parent 963f66e commit 301039a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 301039a

Please sign in to comment.