summaryrefslogtreecommitdiff
path: root/cmake/modules/CheckCxxHashset.cmake
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-03-09 06:16:26 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-03-09 06:16:26 +0000
commit59fad7d9339901f8146f2d77cd7818625f0935b8 (patch)
treec00634bc55d85ddb82a29bff77d1da0dedc28cd1 /cmake/modules/CheckCxxHashset.cmake
parentf231c07228deb75b6cd5ae7c9c057bc8303c6998 (diff)
downloadllvm-59fad7d9339901f8146f2d77cd7818625f0935b8.tar.gz
llvm-59fad7d9339901f8146f2d77cd7818625f0935b8.tar.bz2
llvm-59fad7d9339901f8146f2d77cd7818625f0935b8.tar.xz
Remove configurey-fu to autodetect hash_map and hash_set now that they are
no longer used in LLVM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66406 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/CheckCxxHashset.cmake')
-rwxr-xr-xcmake/modules/CheckCxxHashset.cmake52
1 files changed, 0 insertions, 52 deletions
diff --git a/cmake/modules/CheckCxxHashset.cmake b/cmake/modules/CheckCxxHashset.cmake
deleted file mode 100755
index 940c388127..0000000000
--- a/cmake/modules/CheckCxxHashset.cmake
+++ /dev/null
@@ -1,52 +0,0 @@
-# - Check if for hash_set.
-# CHECK_HASHSET ()
-#
-
-include(CheckCXXSourceCompiles)
-
-macro(CHECK_HASHSET)
- message(STATUS "Checking for C++ hash_set implementation...")
- check_cxx_source_compiles("
- #include <ext/hash_set>
- int main() {
- __gnu_cxx::hash_set<int> t;
- }
-"
- HAVE_GNU_EXT_HASH_SET
- )
- if(HAVE_GNU_EXT_HASH_SET)
- message(STATUS "C++ hash_set found in 'ext' dir in namespace __gnu_cxx::")
- endif(HAVE_GNU_EXT_HASH_SET)
-
- check_cxx_source_compiles("
- #include <ext/hash_set>
- int main() {
- std::hash_set<int> t;
- }
-"
- HAVE_STD_EXT_HASH_SET
- )
- if(HAVE_STD_EXT_HASH_SET)
- message(STATUS "C++ hash_set found in 'ext' dir in namespace std::")
- endif(HAVE_STD_EXT_HASH_SET)
-
- check_cxx_source_compiles("
- #include <hash_set>
- int main() {
- hash_set<int> t;
- }
-"
- HAVE_GLOBAL_HASH_SET
- )
- if(HAVE_GLOBAL_HASH_SET)
- message(STATUS "C++ hash_set found in global namespace")
- endif(HAVE_GLOBAL_HASH_SET)
-
- if(NOT HAVE_GNU_EXT_HASH_SET)
- if(NOT HAVE_STD_EXT_HASH_SET)
- if(NOT HAVE_GLOBAL_HASH_SET)
- message(STATUS "C++ hash_set not found")
- endif(NOT HAVE_GLOBAL_HASH_SET)
- endif(NOT HAVE_STD_EXT_HASH_SET)
- endif(NOT HAVE_GNU_EXT_HASH_SET)
-endmacro(CHECK_HASHSET)