Fix compiler detection

This commit is contained in:
David Carlier 2020-04-15 05:34:07 +01:00
parent 6c5039bad1
commit 80aeb1bd1d

View File

@ -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)