Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
André Pedro
CMake
Commits
b370936a
Commit
b370936a
authored
19 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
BUG: Added more try-compiles from kwsys.
parent
772b121a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bootstrap
+45
-1
45 additions, 1 deletion
bootstrap
with
45 additions
and
1 deletion
bootstrap
+
45
−
1
View file @
b370936a
...
...
@@ -203,6 +203,10 @@ cmake_kwsys_config_replace_string ()
s/@KWSYS_STL_STRING_HAVE_ISTREAM@/
${
KWSYS_STL_STRING_HAVE_ISTREAM
}
/g;
s/@KWSYS_STL_STRING_HAVE_OSTREAM@/
${
KWSYS_STL_STRING_HAVE_OSTREAM
}
/g;
s/@KWSYS_STL_STRING_HAVE_NEQ_CHAR@/
${
KWSYS_STL_STRING_HAVE_NEQ_CHAR
}
/g;
s/@KWSYS_STL_HAS_ALLOCATOR_REBIND@/
${
KWSYS_STL_HAS_ALLOCATOR_REBIND
}
/g;
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_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
...
...
@@ -257,7 +261,7 @@ cmake_try_run ()
echo
"Try:
${
COMPILER
}
"
echo
"Line:
${
COMPILER
}
${
FLAGS
}
${
TESTFILE
}
-o
${
TMPFILE
}
"
echo
"---------- file -----------------------"
cat
${
TESTFILE
}
cat
"
${
TESTFILE
}
"
echo
"------------------------------------------"
"
${
COMPILER
}
"
${
FLAGS
}
"
${
TESTFILE
}
"
-o
"
${
TMPFILE
}
"
RES
=
$?
...
...
@@ -711,6 +715,10 @@ KWSYS_IOS_USE_ANSI=0
KWSYS_STL_HAVE_STD
=
0
KWSYS_STAT_HAS_ST_MTIM
=
0
KWSYS_STL_STRING_HAVE_NEQ_CHAR
=
0
KWSYS_STL_HAS_ALLOCATOR_REBIND
=
0
KWSYS_CXX_HAS_NULL_TEMPLATE_ARGS
=
0
KWSYS_CXX_HAS_MEMBER_TEMPLATES
=
0
KWSYS_CXX_HAS_FULL_SPECIALIZATION
=
0
# Hardcode these kwsys features. They work on all known UNIX compilers anyway.
KWSYS_STL_STRING_HAVE_ISTREAM
=
1
...
...
@@ -783,6 +791,42 @@ else
echo
"
${
cmake_cxx_compiler
}
does not have operator!=(string, char*)"
fi
if
cmake_try_run
"
${
cmake_cxx_compiler
}
"
\
"
${
cmake_cxx_flags
}
-DTEST_KWSYS_STL_HAS_ALLOCATOR_REBIND -DKWSYS_STL_HAVE_STD=
${
KWSYS_STL_HAVE_STD
}
"
\
"
${
cmake_source_dir
}
/Source/kwsys/kwsysPlatformCxxTests.cxx"
>>
cmake_bootstrap.log 2>&1
;
then
KWSYS_STL_HAS_ALLOCATOR_REBIND
=
1
echo
"
${
cmake_cxx_compiler
}
has allocator<>::rebind<>"
else
echo
"
${
cmake_cxx_compiler
}
does not have allocator<>::rebind<>"
fi
if
cmake_try_run
"
${
cmake_cxx_compiler
}
"
\
"
${
cmake_cxx_flags
}
-DTEST_KWSYS_CXX_HAS_NULL_TEMPLATE_ARGS"
\
"
${
cmake_source_dir
}
/Source/kwsys/kwsysPlatformCxxTests.cxx"
>>
cmake_bootstrap.log 2>&1
;
then
echo
"
${
cmake_cxx_compiler
}
does not require template friends to use <>"
else
KWSYS_CXX_HAS_NULL_TEMPLATE_ARGS
=
1
echo
"
${
cmake_cxx_compiler
}
requires template friends to use <>"
fi
if
cmake_try_run
"
${
cmake_cxx_compiler
}
"
\
"
${
cmake_cxx_flags
}
-DTEST_KWSYS_CXX_HAS_MEMBER_TEMPLATES"
\
"
${
cmake_source_dir
}
/Source/kwsys/kwsysPlatformCxxTests.cxx"
>>
cmake_bootstrap.log 2>&1
;
then
KWSYS_CXX_HAS_MEMBER_TEMPLATES
=
1
echo
"
${
cmake_cxx_compiler
}
supports member templates"
else
echo
"
${
cmake_cxx_compiler
}
does not support member templates"
fi
if
cmake_try_run
"
${
cmake_cxx_compiler
}
"
\
"
${
cmake_cxx_flags
}
-DTEST_KWSYS_CXX_HAS_FULL_SPECIALIZATION"
\
"
${
cmake_source_dir
}
/Source/kwsys/kwsysPlatformCxxTests.cxx"
>>
cmake_bootstrap.log 2>&1
;
then
KWSYS_CXX_HAS_FULL_SPECIALIZATION
=
1
echo
"
${
cmake_cxx_compiler
}
has standard template specialization syntax"
else
echo
"
${
cmake_cxx_compiler
}
does not have standard template specialization syntax"
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment