mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
13 lines
390 B
CMake
13 lines
390 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
project(FindThreads_CXX-only CXX)
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../../../Modules/CheckForPthreads.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/CheckForPthreads.cxx)
|
|
|
|
if (NOT WIN32)
|
|
add_executable(thr ${CMAKE_CURRENT_BINARY_DIR}/CheckForPthreads.cxx)
|
|
target_link_libraries(thr Threads::Threads)
|
|
endif ()
|