diff options
author | Brad King <brad.king@kitware.com> | 2019-06-04 12:25:38 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-06-04 12:25:47 (GMT) |
commit | e591e22d4c7d2b4d4806cf47923e54269644b2a2 (patch) | |
tree | d88028ca192fd4f14067fbd5840b269ecd1a4630 /Source | |
parent | 7561fcda0918abf71b7fb0cfe67dd70fafe577ae (diff) | |
parent | 619416f8a30c99f87869559cf3829ce6d3431dca (diff) | |
download | CMake-e591e22d4c7d2b4d4806cf47923e54269644b2a2.zip CMake-e591e22d4c7d2b4d4806cf47923e54269644b2a2.tar.gz CMake-e591e22d4c7d2b4d4806cf47923e54269644b2a2.tar.bz2 |
Merge topic 'better_error_message_for_visibility_preset_property'
619416f8a3 The error message for VISIBILITY_PRESET now documents valid options.
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3409
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 87d2232..e20747f 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1914,7 +1914,9 @@ static void AddVisibilityCompileOption(std::string& flags, strcmp(prop, "protected") != 0 && strcmp(prop, "internal") != 0) { std::ostringstream e; e << "Target " << target->GetName() << " uses unsupported value \"" << prop - << "\" for " << flagDefine << "."; + << "\" for " << flagDefine << "." + << " The supported values are: default, hidden, protected, and " + "internal."; cmSystemTools::Error(e.str()); return; } |