mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-08-28 08:46:33 -04:00
9 lines
298 B
CMake
9 lines
298 B
CMake
# Clang or AppleClang (see CMP0025)
|
|
if(NOT DEFINED C_CLANG AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
set(C_CLANG 1)
|
|
elseif(NOT DEFINED C_GCC AND CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
|
set(C_GCC 1)
|
|
elseif(NOT DEFINED C_MSVC AND CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
|
set(C_MSVC 1)
|
|
endif()
|