This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  da378b6182c89d31d97524efd086fcb119ef0572 (commit)
       via  8633df503365e43cb966938bc3bb895a08da0862 (commit)
      from  f7b8e9fc7446ba57138811776dac5a06acfd3f06 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=da378b6182c89d31d97524efd086fcb119ef0572
commit da378b6182c89d31d97524efd086fcb119ef0572
Merge: f7b8e9f 8633df5
Author:     Rolf Eike Beer <e...@sf-mail.de>
AuthorDate: Mon Sep 21 12:02:46 2015 -0400
Commit:     CMake Topic Stage <kwro...@kitware.com>
CommitDate: Mon Sep 21 12:02:46 2015 -0400

    Merge topic 'Threads-CXX' into next
    
    8633df50 FindThreads: add simple testcase


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8633df503365e43cb966938bc3bb895a08da0862
commit 8633df503365e43cb966938bc3bb895a08da0862
Author:     Rolf Eike Beer <e...@sf-mail.de>
AuthorDate: Mon Sep 21 17:57:33 2015 +0200
Commit:     Rolf Eike Beer <e...@sf-mail.de>
CommitDate: Mon Sep 21 17:57:33 2015 +0200

    FindThreads: add simple testcase

diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index fff04ce..dc65a2e 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -1365,6 +1365,8 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P 
${CMake_SOURCE_DIR}/Utilities/Release
     add_subdirectory(FindOpenSSL)
   endif()
 
+  add_subdirectory(FindThreads)
+
   # Matlab module
   if(CMake_TEST_FindMatlab)
     ADD_TEST_MACRO(FindMatlab.basic_checks      ${CMAKE_CTEST_COMMAND} -C 
$<CONFIGURATION>)
diff --git a/Tests/FindThreads/C-only/CMakeLists.txt 
b/Tests/FindThreads/C-only/CMakeLists.txt
new file mode 100644
index 0000000..c366b79
--- /dev/null
+++ b/Tests/FindThreads/C-only/CMakeLists.txt
@@ -0,0 +1,8 @@
+cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
+project(FindThreads C)
+
+set(CMAKE_THREAD_PREFER_PTHREAD On)
+find_package(Threads REQUIRED)
+
+add_executable(thr 
${CMAKE_CURRENT_SOURCE_DIR}/../../../Modules/CheckForPthreads.c)
+target_link_libraries(thr Threads::Threads)
diff --git a/Tests/FindThreads/CMakeLists.txt b/Tests/FindThreads/CMakeLists.txt
new file mode 100644
index 0000000..36518a3
--- /dev/null
+++ b/Tests/FindThreads/CMakeLists.txt
@@ -0,0 +1,9 @@
+add_test(NAME FindThreads.C-only COMMAND ${CMAKE_CTEST_COMMAND}
+  --build-and-test
+  "${CMake_SOURCE_DIR}/Tests/FindThreads/C-only"
+  "${CMake_BINARY_DIR}/Tests/FindThreads/C-only"
+  ${build_generator_args}
+  --build-project FindThreads_C-only
+  --build-options ${build_options}
+  --test-command ${CMAKE_CTEST_COMMAND} -V
+  )

-----------------------------------------------------------------------

Summary of changes:
 Tests/CMakeLists.txt                    |    2 ++
 Tests/FindThreads/C-only/CMakeLists.txt |    8 ++++++++
 Tests/FindThreads/CMakeLists.txt        |    9 +++++++++
 3 files changed, 19 insertions(+)
 create mode 100644 Tests/FindThreads/C-only/CMakeLists.txt
 create mode 100644 Tests/FindThreads/CMakeLists.txt


hooks/post-receive
-- 
CMake
_______________________________________________
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits

Reply via email to