mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
f58fd19f52
For linux platform, we may use the Threads library to provide the option `-pthread` when the program uses multiple thread. This solution is portable for WSL2/Linux and other disturbuiton.
10 lines
240 B
CMake
10 lines
240 B
CMake
cmake_minimum_required(VERSION 2.8)
|
|
project(peglint)
|
|
include_directories(..)
|
|
add_definitions("-std=c++11")
|
|
add_executable(peglint peglint.cc)
|
|
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|
target_link_libraries(peglint ${add_link_deps})
|
|
endif()
|