diff --git a/CMakeLists.txt b/CMakeLists.txt index 508934dc..e37b5083 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -146,7 +146,7 @@ endif() if(WIN32) list(APPEND mi_libraries psapi shell32 user32 bcrypt) else() - if(NOT ${CC} MATCHES "android") + if(NOT ${CMAKE_C_COMPILER} MATCHES "android") list(APPEND mi_libraries pthread) find_library(LIBRT rt) if(LIBRT)