1 # - Check if for hash_set.
5 include(CheckCXXSourceCompiles)
8 message(STATUS "Checking for C++ hash_set implementation...")
9 check_cxx_source_compiles("
10 #include <ext/hash_set>
12 __gnu_cxx::hash_set<int> t;
17 if(HAVE_GNU_EXT_HASH_SET)
18 message(STATUS "C++ hash_set found in 'ext' dir in namespace __gnu_cxx::")
19 endif(HAVE_GNU_EXT_HASH_SET)
21 check_cxx_source_compiles("
22 #include <ext/hash_set>
29 if(HAVE_STD_EXT_HASH_SET)
30 message(STATUS "C++ hash_set found in 'ext' dir in namespace std::")
31 endif(HAVE_STD_EXT_HASH_SET)
33 check_cxx_source_compiles("
41 if(HAVE_GLOBAL_HASH_SET)
42 message(STATUS "C++ hash_set found in global namespace")
43 endif(HAVE_GLOBAL_HASH_SET)
45 if(NOT HAVE_GNU_EXT_HASH_SET)
46 if(NOT HAVE_STD_EXT_HASH_SET)
47 if(NOT HAVE_GLOBAL_HASH_SET)
48 message(STATUS "C++ hash_set not found")
49 endif(NOT HAVE_GLOBAL_HASH_SET)
50 endif(NOT HAVE_STD_EXT_HASH_SET)
51 endif(NOT HAVE_GNU_EXT_HASH_SET)
52 endmacro(CHECK_HASHSET)