mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 11:55:30 +00:00
Fixed 'std::call_once' crash problem with peglint on Ubuntu.
This commit is contained in:
parent
91bf45b7d4
commit
469a61f044
@ -2,6 +2,12 @@ cmake_minimum_required(VERSION 2.8)
|
|||||||
include_directories(..)
|
include_directories(..)
|
||||||
add_definitions("-std=c++11")
|
add_definitions("-std=c++11")
|
||||||
add_executable(peglint peglint.cc server.cc)
|
add_executable(peglint peglint.cc server.cc)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
target_link_libraries(peglint wsock32 ws2_32)
|
target_link_libraries(peglint wsock32 ws2_32)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
|
#set(add_link_deps pthread)
|
||||||
|
target_link_libraries(peglint pthread)
|
||||||
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user