cpp-peglib/lint/CMakeLists.txt
Xinzhao Zhu f58fd19f52 Use CMake's Threads library to provide '-pthread` for Linux
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.
2020-05-17 22:55:56 +08:00

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()