mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
We do not need to support IRIX anymore, so drop relevant parts. In particular, the `CMAKE_THREAD_PREFER_PTHREAD` is frequently confused with `THREADS_PREFER_PTHREAD_FLAG`. Also remove references to the IRIX-specific options and results from other modules and tests.
13 lines
401 B
CMake
13 lines
401 B
CMake
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
|
|
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 ()
|