--- host/CMakeLists.txt.orig +++ host/CMakeLists.txt @@ -97,7 +97,7 @@ option(ENABLE_GDB_EXTENSIONS "Build with -ggdb3 instead of -g" OFF) if(${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR - ${CMAKE_C_COMPILER_ID} STREQUAL "Clang") + ${CMAKE_C_COMPILER_ID} MATCHES "Clang") # Personal preference - as much debug info as possible with GDB if(${ENABLE_GDB_EXTENSIONS}) @@ -119,7 +119,7 @@ endif(${CMAKE_BUILD_TYPE} STREQUAL "Debug") endif(${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR - ${CMAKE_C_COMPILER_ID} STREQUAL "Clang") + ${CMAKE_C_COMPILER_ID} MATCHES "Clang") ############################### # MS Visual Studio --- host/libraries/libbladeRF/CMakeLists.txt.orig +++ host/libraries/libbladeRF/CMakeLists.txt @@ -152,7 +152,7 @@ endif() if(${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR - ${CMAKE_C_COMPILER_ID} STREQUAL "Clang") + ${CMAKE_C_COMPILER_ID} MATCHES "Clang") # Doing this manually instead of via add_compiler_export_flags() since # the GenerateExportHeader module appears to break for C-only projects: