diff --git a/CMakeLists.txt b/CMakeLists.txt index ebea511..16e6c41 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ project(LO41 C) set(CMAKE_C_STANDARD 11) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wextra -Wshadow -fpic") -if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") +if(CMAKE_COMPILER_IS_GNUCC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread") endif()