diff --git a/lint/CMakeLists.txt b/lint/CMakeLists.txt index 1ddf9a2..88a9204 100644 --- a/lint/CMakeLists.txt +++ b/lint/CMakeLists.txt @@ -3,3 +3,7 @@ project(peglint) include_directories(..) add_definitions("-std=c++11") add_executable(peglint peglint.cc) + +if(CMAKE_SYSTEM_NAME STREQUAL "Linux") + target_link_libraries(peglint pthread) +endif()