Fix "terminate called after throwing an instance of 'std::system_error'"

This is a re-fix.  The missing pthread lib was fixed in 469a61f044, but then unfixed in 06fc879371.
This commit is contained in:
bnjf 2020-04-25 00:52:03 +10:00 committed by GitHub
parent 51ed96c8f2
commit 6137e2a340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,3 +3,7 @@ project(peglint)
include_directories(..) include_directories(..)
add_definitions("-std=c++11") add_definitions("-std=c++11")
add_executable(peglint peglint.cc) add_executable(peglint peglint.cc)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_link_libraries(peglint pthread)
endif()