diff options
author | Matthew Woehlke <matthew.woehlke@kitware.com> | 2022-09-16 19:29:35 (GMT) |
---|---|---|
committer | Matthew Woehlke <matthew.woehlke@kitware.com> | 2022-09-16 19:29:35 (GMT) |
commit | 30a234d275be3947a14e5e109f66b83877730e23 (patch) | |
tree | 479c77084f5bfa319e5e4422bcfbed21354fca53 /Source/cmCoreTryCompile.cxx | |
parent | 343685869716b2ac31876d3e4173ece46ea49efc (diff) | |
download | CMake-30a234d275be3947a14e5e109f66b83877730e23.zip CMake-30a234d275be3947a14e5e109f66b83877730e23.tar.gz CMake-30a234d275be3947a14e5e109f66b83877730e23.tar.bz2 |
try_compile: Improve error message consistency
Tweak some error messages from try_compile (and try_run) to be more
consistent with each other.
Diffstat (limited to 'Source/cmCoreTryCompile.cxx')
-rw-r--r-- | Source/cmCoreTryCompile.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx index 2f63b3c..3ef62a0 100644 --- a/Source/cmCoreTryCompile.cxx +++ b/Source/cmCoreTryCompile.cxx @@ -403,19 +403,19 @@ bool cmCoreTryCompile::TryCompileCode(Arguments& arguments, this->Makefile->IssueMessage( MessageType::FATAL_ERROR, cmStrCat(arguments.LangProps.begin()->first, - " allowed only in source file signature.")); + " allowed only in source file signature")); return false; } if (!arguments.CompileDefs.empty()) { this->Makefile->IssueMessage( MessageType::FATAL_ERROR, - "COMPILE_DEFINITIONS specified on a srcdir type TRY_COMPILE"); + "COMPILE_DEFINITIONS allowed only in source file signature"); return false; } if (arguments.CopyFileTo) { this->Makefile->IssueMessage( MessageType::FATAL_ERROR, - "COPY_FILE specified on a srcdir type TRY_COMPILE"); + "COPY_FILE allowed only in source file signature"); return false; } } |