Skip to content

Commit 33a7a10

Browse files
committed
Fix set C compiler flags bug
1 parent abb1517 commit 33a7a10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "DEBUG")
4141
endif()
4242

4343
# Set C compiler flags
44-
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
44+
if(CMAKE_COMPILER_IS_GNUC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
4545
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations")
4646
elseif(MSVC)
4747
set(MSVC_DISABLED_WARNINGS_LIST

0 commit comments

Comments
 (0)