summaryrefslogtreecommitdiffstats
path: root/Tests/FindBoost/Test/main.cxx
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@codelibre.net>2015-12-01 22:05:35 (GMT)
committerBrad King <brad.king@kitware.com>2015-12-02 14:40:17 (GMT)
commit9fd987507622c585f4e0131678654e0643fd9a50 (patch)
tree7999c9a31cd17d7999815452871ebed5515e2eb0 /Tests/FindBoost/Test/main.cxx
parent3f9b081f6ee85e0691c36496d989edbe8382589d (diff)
downloadCMake-9fd987507622c585f4e0131678654e0643fd9a50.zip
CMake-9fd987507622c585f4e0131678654e0643fd9a50.tar.gz
CMake-9fd987507622c585f4e0131678654e0643fd9a50.tar.bz2
Tests: Add FindBoost testcase for imported targets
Enable by setting CMake_TEST_FindBoost to TRUE.
Diffstat (limited to 'Tests/FindBoost/Test/main.cxx')
-rw-r--r--Tests/FindBoost/Test/main.cxx26
1 files changed, 26 insertions, 0 deletions
diff --git a/Tests/FindBoost/Test/main.cxx b/Tests/FindBoost/Test/main.cxx
new file mode 100644
index 0000000..0f44f30
--- /dev/null
+++ b/Tests/FindBoost/Test/main.cxx
@@ -0,0 +1,26 @@
+#include <boost/filesystem.hpp>
+#include <boost/thread.hpp>
+
+namespace
+{
+
+ boost::mutex m1;
+ boost::recursive_mutex m2;
+
+ void
+ threadmain()
+ {
+ boost::lock_guard<boost::mutex> lock1(m1);
+ boost::lock_guard<boost::recursive_mutex> lock2(m2);
+
+ boost::filesystem::path p(boost::filesystem::current_path());
+ }
+
+}
+
+int main() {
+ boost::thread foo(threadmain);
+ foo.join();
+
+ return 0;
+}