mirror of
https://github.com/ksherlock/mpw.git
synced 2024-05-28 22:41:33 +00:00
Check C and C++ compiler separately
It's possible (however unlikely) that the C++ compiler might be clang but the C compiler might not be.
This commit is contained in:
parent
022d4cffe9
commit
0d38caf2fc
|
@ -10,8 +10,12 @@ set(CMAKE_C_STANDARD_REQUIRED TRUE)
|
|||
set(CMAKE_C_EXTENSIONS FALSE)
|
||||
|
||||
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
||||
# Clang or AppleClang
|
||||
set(CMAKE_CXX_FLAGS "-Wall")
|
||||
endif()
|
||||
|
||||
if ("${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
|
||||
# Clang or AppleClang
|
||||
set(CMAKE_CXX_FLAGS "-Wall")
|
||||
set(CMAKE_C_FLAGS "-Wall")
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user