Skip to content

Commit 869986c

Browse files
committed
fix: fix CMAKE_C_STANDARD variable
1 parent b28118b commit 869986c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Standards.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ macro(set_standards)
2121
set(CMAKE_CXX_STANDARD ${CXX_LATEST_STANDARD})
2222
endif()
2323

24-
if("{CMAKE_C_STANDARD}" STREQUAL "")
24+
if("${CMAKE_C_STANDARD}" STREQUAL "")
2525
if(NOT
2626
${ProjectOptions_ENABLE_CPPCHECK} # cppcheck doesn't support C17 https://sourceforge.net/p/cppcheck/discussion/general/thread/19ea152bba/
2727
AND DEFINED CMAKE_C17_STANDARD_COMPILE_OPTION

0 commit comments

Comments
 (0)