From 5a5a1d90f01d6364426be5f08244e9acf0526734 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (o)" Date: Wed, 9 Jan 2019 11:01:46 +0100 Subject: Help: FindThreads not needed with modern C++. --- Modules/FindThreads.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Modules/FindThreads.cmake') diff --git a/Modules/FindThreads.cmake b/Modules/FindThreads.cmake index 9c96a1b2a5..5d894c8623 100644 --- a/Modules/FindThreads.cmake +++ b/Modules/FindThreads.cmake @@ -29,9 +29,12 @@ caller can set THREADS_PREFER_PTHREAD_FLAG -Please note that the compiler flag can only be used with the imported +The compiler flag can only be used with the imported target. Use of both the imported target as well as this switch is highly recommended for new code. + +This module is not needed for C++11 and later if threading is done using +``std::thread`` from the standard library. #]=======================================================================] include (CheckLibraryExists) -- cgit v1.2.1