summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorStefan Radomski <sradomski@mintwerk.de>2015-12-04 08:00:18 (GMT)
committerStefan Radomski <sradomski@mintwerk.de>2015-12-04 08:00:18 (GMT)
commitb8ba0e7c31f397a66f9d509ff20a85b33619475a (patch)
tree9a5adb4f891cdc29eb80f597510e0cef8ee0a47f /contrib
parent57ba362eae6e8209cf560555fd4cc4bb76dbe2a1 (diff)
downloaduscxml-b8ba0e7c31f397a66f9d509ff20a85b33619475a.zip
uscxml-b8ba0e7c31f397a66f9d509ff20a85b33619475a.tar.gz
uscxml-b8ba0e7c31f397a66f9d509ff20a85b33619475a.tar.bz2
All changes up to my dissertation
Diffstat (limited to 'contrib')
-rw-r--r--contrib/cmake/TryCompile.cmake23
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/cmake/TryCompile.cmake b/contrib/cmake/TryCompile.cmake
new file mode 100644
index 0000000..3647dd1
--- /dev/null
+++ b/contrib/cmake/TryCompile.cmake
@@ -0,0 +1,23 @@
+include(CheckCXXSourceCompiles)
+# set(CMAKE_REQUIRED_INCLUDES ${SWI_INCLUDE_DIR} ${SWI_CPP_INCLUDE_DIR})
+# set(CMAKE_REQUIRED_LIBRARIES ${SWI_LIBRARY})
+
+check_cxx_source_compiles("
+ #include <typeinfo>
+ #include <execinfo.h>
+ #include <dlfcn.h>
+ extern \"C\"
+ void __cxa_throw (void *thrown_exception, void *pvtinfo, void (*dest)(void *)) {
+ }
+ int main() {}
+" CXA_THROW_HAS_VOID_PVTINFO_TYPE)
+
+check_cxx_source_compiles("
+ #include <typeinfo>
+ #include <execinfo.h>
+ #include <dlfcn.h>
+ extern \"C\"
+ void __cxa_throw (void *thrown_exception, std::type_info *pvtinfo, void (*dest)(void *)) {
+ }
+ int main() {}
+" CXA_THROW_HAS_TYPEINFO_PVTINFO_TYPE)