diff options
author | Brad King <brad.king@kitware.com> | 2005-04-15 12:59:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-04-15 12:59:30 (GMT) |
commit | 7f706ecc984abc81de62baa85892ecca81375bf7 (patch) | |
tree | fc93c6217ce3dae6cac0beef6f39e5e1c7c9fd47 /bootstrap | |
parent | d3a69766df78d4ee0186a592c05952280f043d3a (diff) | |
download | CMake-7f706ecc984abc81de62baa85892ecca81375bf7.zip CMake-7f706ecc984abc81de62baa85892ecca81375bf7.tar.gz CMake-7f706ecc984abc81de62baa85892ecca81375bf7.tar.bz2 |
ENH: Added KWSYS_CXX_HAS_ARGUMENT_DEPENDENT_LOOKUP try-compile to KWSys. Needed to optionally bring hash table comparison operators into the global namespace when argument dependent lookup is not supported.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -208,6 +208,7 @@ cmake_kwsys_config_replace_string () s/@KWSYS_CXX_HAS_NULL_TEMPLATE_ARGS@/${KWSYS_CXX_HAS_NULL_TEMPLATE_ARGS}/g; s/@KWSYS_CXX_HAS_MEMBER_TEMPLATES@/${KWSYS_CXX_HAS_MEMBER_TEMPLATES}/g; s/@KWSYS_CXX_HAS_FULL_SPECIALIZATION@/${KWSYS_CXX_HAS_FULL_SPECIALIZATION}/g; + s/@KWSYS_CXX_HAS_ARGUMENT_DEPENDENT_LOOKUP@/${KWSYS_CXX_HAS_ARGUMENT_DEPENDENT_LOOKUP}/g; s/@KWSYS_STAT_HAS_ST_MTIM@/${KWSYS_STAT_HAS_ST_MTIM}/g;}" >> "${OUTFILE}.tmp" if [ -f "${OUTFILE}.tmp" ]; then if diff "${OUTFILE}" "${OUTFILE}.tmp" > /dev/null 2> /dev/null ; then @@ -721,6 +722,7 @@ KWSYS_STL_HAS_ALLOCATOR_MAX_SIZE_ARGUMENT=0 KWSYS_CXX_HAS_NULL_TEMPLATE_ARGS=0 KWSYS_CXX_HAS_MEMBER_TEMPLATES=0 KWSYS_CXX_HAS_FULL_SPECIALIZATION=0 +KWSYS_CXX_HAS_ARGUMENT_DEPENDENT_LOOKUP=0 # Hardcode these kwsys features. They work on all known UNIX compilers anyway. KWSYS_STL_STRING_HAVE_ISTREAM=1 @@ -839,6 +841,15 @@ else fi if cmake_try_run "${cmake_cxx_compiler}" \ + "${cmake_cxx_flags} -DTEST_KWSYS_CXX_HAS_ARGUMENT_DEPENDENT_LOOKUP" \ + "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then + KWSYS_CXX_HAS_ARGUMENT_DEPENDENT_LOOKUP=1 + echo "${cmake_cxx_compiler} has argument dependent lookup" +else + echo "${cmake_cxx_compiler} does not have argument dependent lookup" +fi + +if cmake_try_run "${cmake_cxx_compiler}" \ "${cmake_cxx_flags} -DTEST_KWSYS_STAT_HAS_ST_MTIM" \ "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then KWSYS_STAT_HAS_ST_MTIM=1 |