aboutsummaryrefslogtreecommitdiffstats
path: root/CheckNeedGetPointer.cmake
diff options
context:
space:
mode:
authorAlec Thomas <alec@swapoff.org>2013-08-22 18:38:14 -0400
committerAlec Thomas <alec@swapoff.org>2013-08-22 22:51:20 -0400
commit302bf251f95577ecef8c9662f95651ae2cc49cd7 (patch)
treede10e8e1105800c78bf961d719c5aa606fb6cedd /CheckNeedGetPointer.cmake
parent5716e2ef6578e8cd2ea2b2e266d9f438c233ed0f (diff)
Switch from boost::signal to embedded Simple::Signal.
Diffstat (limited to 'CheckNeedGetPointer.cmake')
-rw-r--r--CheckNeedGetPointer.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/CheckNeedGetPointer.cmake b/CheckNeedGetPointer.cmake
new file mode 100644
index 0000000..2e53ac3
--- /dev/null
+++ b/CheckNeedGetPointer.cmake
@@ -0,0 +1,18 @@
+cmake_minimum_required(VERSION 2.8.3)
+
+check_cxx_source_compiles(
+"
+#include <boost/get_pointer.hpp>
+
+namespace boost {
+template <class T> inline T * get_pointer(const std::shared_ptr<T> &p) {
+ return p.get();
+}
+}
+
+int main() {
+ return 0;
+}
+"
+ENTITYX_NEED_GET_POINTER_SHARED_PTR_SPECIALIZATION
+)