aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-09-01 10:47:07 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-09-01 10:47:07 +0000
commit7eeb620880e78b7a389304d9ec594986906db5ad (patch)
tree2cdfe31b6865970640cd42aea45386ac53081807 /cmake
parentbb114eb67fb7e6ec939212513d763c2ed9937456 (diff)
restart Eigen2 development from scratch.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/CheckAlwaysInline.cmake44
-rw-r--r--cmake/modules/CheckRestrictKeyword.cmake87
2 files changed, 0 insertions, 131 deletions
diff --git a/cmake/modules/CheckAlwaysInline.cmake b/cmake/modules/CheckAlwaysInline.cmake
deleted file mode 100644
index ab5ceb0ac..000000000
--- a/cmake/modules/CheckAlwaysInline.cmake
+++ /dev/null
@@ -1,44 +0,0 @@
-# This module checks if the C++ compiler supports
-# __attribute__((always_inline)).
-#
-# If yes, _RESULT is set to __attribute__((always_inline)).
-# If no, _RESULT is set to empty value.
-#
-# Copyright Benoit Jacob 2007 <jacob@math.jussieu.fr>
-#
-# Redistribution and use is allowed according to the terms of the BSD license.
-# For details see the accompanying COPYING-CMAKE-SCRIPTS file in
-# kdelibs/cmake/modules.
-
-INCLUDE(CheckCXXSourceCompiles)
-
-MACRO (CHECK_ALWAYS_INLINE _RESULT)
-
-SET(_CHECK_attribute_always_inline_SRC "
-
-#ifdef __GNUC__
-# define ALL_IS_WELL
-#endif
-
-#ifdef __INTEL_COMPILER
-# if (__INTEL_COMPILER == 800) || (__INTEL_COMPILER > 800)
-# define ALL_IS_WELL
-# endif
-#endif
-
-#ifndef ALL_IS_WELL
-# error I guess your compiler doesn't support __attribute__((always_inline))
-#endif
-
-int main(int argc, char *argv[]) { return 0; }
-")
-
-CHECK_CXX_SOURCE_COMPILES("${_CHECK_attribute_always_inline_SRC}"
- HAVE_attribute_always_inline)
-IF(HAVE_attribute_always_inline)
- SET(${_RESULT} "__attribute__((always_inline))")
-ELSE(HAVE_attribute_always_inline)
- SET(${_RESULT} ) # attribute always_inline unsupported
-ENDIF(HAVE_attribute_always_inline)
-
-ENDMACRO (CHECK_ALWAYS_INLINE)
diff --git a/cmake/modules/CheckRestrictKeyword.cmake b/cmake/modules/CheckRestrictKeyword.cmake
deleted file mode 100644
index d3fcbda90..000000000
--- a/cmake/modules/CheckRestrictKeyword.cmake
+++ /dev/null
@@ -1,87 +0,0 @@
-# This module checks if the C++ compiler supports the restrict keyword or
-# some variant of it. The following variants are checked for in that order:
-# 1. restrict (The standard C99 keyword, not yet in C++ standard)
-# 2. __restrict (G++ has it)
-# 3. __restrict__ (G++ has it too)
-# 4. _Restrict (seems to be used by Sun's compiler)
-# These four cases seem to cover all existing variants; however some C++
-# compilers don't support any variant, in which case the _RESULT variable is
-# set to empty value.
-#
-# Copyright Benoit Jacob 2007 <jacob@math.jussieu.fr>
-#
-# Redistribution and use is allowed according to the terms of the BSD license.
-# For details see the accompanying COPYING-CMAKE-SCRIPTS file in
-# kdelibs/cmake/modules.
-
-INCLUDE(CheckCXXSourceCompiles)
-
-MACRO (CHECK_RESTRICT_KEYWORD _RESULT)
-
-SET(_CHECK_restrict_KEYWORD_SRC "
-
-char f( const char * restrict x )
-{
- return *x;
-}
-
-int main(int argc, char *argv[]) { return 0; }
-")
-
-SET(_CHECK___restrict_KEYWORD_SRC "
-
-char f( const char * __restrict x )
-{
- return *x;
-}
-
-int main(int argc, char *argv[]) { return 0; }
-")
-
-SET(_CHECK___restrict___KEYWORD_SRC "
-
-char f( const char * __restrict__ x )
-{
- return *x;
-}
-
-int main(int argc, char *argv[]) { return 0; }
-")
-
-SET(_CHECK__Restrict_KEYWORD_SRC "
-
-char f( const char * _Restrict x )
-{
- return *x;
-}
-
-int main(int argc, char *argv[]) { return 0; }
-")
-
-CHECK_CXX_SOURCE_COMPILES("${_CHECK_restrict_KEYWORD_SRC}"
- HAVE_KEYWORD_restrict)
-IF(HAVE_KEYWORD_restrict)
- SET(${_RESULT} restrict)
-ELSE(HAVE_KEYWORD_restrict)
- CHECK_CXX_SOURCE_COMPILES("${_CHECK___restrict_KEYWORD_SRC}"
- HAVE_KEYWORD___restrict)
- IF(HAVE_KEYWORD___restrict)
- SET(${_RESULT} __restrict)
- ELSE(HAVE_KEYWORD___restrict)
- CHECK_CXX_SOURCE_COMPILES("${_CHECK___restrict___KEYWORD_SRC}"
- HAVE_KEYWORD___restrict__)
- IF(HAVE_KEYWORD___restrict__)
- SET(${_RESULT} __restrict__)
- ELSE(HAVE_KEYWORD___restrict__)
- CHECK_CXX_SOURCE_COMPILES("${_CHECK__Restrict_KEYWORD_SRC}"
- HAVE_KEYWORD__Restrict)
- IF(HAVE_KEYWORD__Restrict)
- SET(${_RESULT} _Restrict)
- ELSE(HAVE_KEYWORD__Restrict)
- SET(${_RESULT} ) # no variant of restrict keyword supported
- ENDIF(HAVE_KEYWORD__Restrict)
- ENDIF(HAVE_KEYWORD___restrict__)
- ENDIF(HAVE_KEYWORD___restrict)
-ENDIF(HAVE_KEYWORD_restrict)
-
-ENDMACRO (CHECK_RESTRICT_KEYWORD)