diff --git a/cmake/Config.cmake b/cmake/Config.cmake index cd10b98a..58ee8ee8 100644 --- a/cmake/Config.cmake +++ b/cmake/Config.cmake @@ -86,7 +86,7 @@ if(MSVC) endif() elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") set(SFML_COMPILER_CLANG 1) -elseif(CMAKE_COMPILER_IS_GNUCXX) +elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU") set(SFML_COMPILER_GCC 1) execute_process(COMMAND "${CMAKE_CXX_COMPILER}" "--version" OUTPUT_VARIABLE GCC_COMPILER_VERSION)