[Cmake-commits] CMake branch, next, updated. v3.3.2-3180-g6d9d704
Rolf Eike Beer
eike at sf-mail.de
Mon Sep 21 15:17:53 EDT 2015
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 6d9d7045893e99bc713958ec93f30fcf62555b6f (commit)
via 7279f2939e98ae9ecfb8fda2dc82f6b0048b9316 (commit)
from 6685dcd54221f56e1047142fd728000c9484101a (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=6d9d7045893e99bc713958ec93f30fcf62555b6f
commit 6d9d7045893e99bc713958ec93f30fcf62555b6f
Merge: 6685dcd 7279f29
Author: Rolf Eike Beer <eike at sf-mail.de>
AuthorDate: Mon Sep 21 15:17:52 2015 -0400
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Mon Sep 21 15:17:52 2015 -0400
Merge topic 'Threads-CXX' into next
7279f293 FindThreads: add simple testcase
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7279f2939e98ae9ecfb8fda2dc82f6b0048b9316
commit 7279f2939e98ae9ecfb8fda2dc82f6b0048b9316
Author: Rolf Eike Beer <eike at sf-mail.de>
AuthorDate: Mon Sep 21 17:57:33 2015 +0200
Commit: Rolf Eike Beer <eike at sf-mail.de>
CommitDate: Mon Sep 21 21:17:32 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..ab4ca0d
--- /dev/null
+++ b/Tests/FindThreads/C-only/CMakeLists.txt
@@ -0,0 +1,10 @@
+cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
+project(FindThreads_C-only C)
+
+set(CMAKE_THREAD_PREFER_PTHREAD On)
+find_package(Threads REQUIRED)
+
+if (NOT WIN32)
+ add_executable(thr ${CMAKE_CURRENT_SOURCE_DIR}/../../../Modules/CheckForPthreads.c)
+ target_link_libraries(thr Threads::Threads)
+endif ()
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:
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list