From 469a61f0440ecd0e1eca4f390b62a4e32d3db3a7 Mon Sep 17 00:00:00 2001 From: yhirose Date: Sat, 1 Sep 2018 16:05:00 +0000 Subject: [PATCH] Fixed 'std::call_once' crash problem with peglint on Ubuntu. --- lint/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lint/CMakeLists.txt b/lint/CMakeLists.txt index fe5db73..cefd0db 100644 --- a/lint/CMakeLists.txt +++ b/lint/CMakeLists.txt @@ -2,6 +2,12 @@ cmake_minimum_required(VERSION 2.8) include_directories(..) add_definitions("-std=c++11") add_executable(peglint peglint.cc server.cc) + if(WIN32) target_link_libraries(peglint wsock32 ws2_32) endif() + +if(CMAKE_SYSTEM_NAME STREQUAL "Linux") + #set(add_link_deps pthread) + target_link_libraries(peglint pthread) +endif()