mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 14:48:19 -05:00
bd7b2293aa
CMake 3.27 deprecates compatibility with CMake < 3.5. Update find module tests to avoid the deprecation warning.
10 lines
267 B
CMake
10 lines
267 B
CMake
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
|
|
project(FindThreads_C-only C)
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
if (NOT WIN32)
|
|
add_executable(thr ${CMAKE_CURRENT_SOURCE_DIR}/../../../Modules/CheckForPthreads.c)
|
|
target_link_libraries(thr Threads::Threads)
|
|
endif ()
|