From 6137e2a340e8f69c54531dcfd7fd9a19dc4762ee Mon Sep 17 00:00:00 2001 From: bnjf Date: Sat, 25 Apr 2020 00:52:03 +1000 Subject: [PATCH] Fix "terminate called after throwing an instance of 'std::system_error'" This is a re-fix. The missing pthread lib was fixed in 469a61f0440ecd0e1eca4f390b62a4e32d3db3a7, but then unfixed in 06fc879371cb81a1b2920896c2ddb1b66b8fbb13. --- lint/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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()