diff options
author | FeRD (Frank Dana) <ferdnyc@gmail.com> | 2022-06-06 16:27:09 (GMT) |
---|---|---|
committer | FeRD (Frank Dana) <ferdnyc@gmail.com> | 2022-06-06 16:27:09 (GMT) |
commit | 5fa70e1738902ea7cdec11f30622705c0d9a2149 (patch) | |
tree | e15e519aa76437f080b40ea4801d46fb85d0df1d /Modules/CMakePrintHelpers.cmake | |
parent | 2579503f450f99166408d25161d950450cda0544 (diff) | |
download | CMake-5fa70e1738902ea7cdec11f30622705c0d9a2149.zip CMake-5fa70e1738902ea7cdec11f30622705c0d9a2149.tar.gz CMake-5fa70e1738902ea7cdec11f30622705c0d9a2149.tar.bz2 |
PrintHelpers: Rewrite a few more error messages
Diffstat (limited to 'Modules/CMakePrintHelpers.cmake')
-rw-r--r-- | Modules/CMakePrintHelpers.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/CMakePrintHelpers.cmake b/Modules/CMakePrintHelpers.cmake index 0af2d3f..f40b06c 100644 --- a/Modules/CMakePrintHelpers.cmake +++ b/Modules/CMakePrintHelpers.cmake @@ -125,13 +125,14 @@ function(cmake_print_properties) endif() if(NOT mode) - message(FATAL_ERROR "Mode keyword missing in cmake_print_properties() call, must be one of TARGETS SOURCES TESTS DIRECTORIES CACHE_ENTRIES PROPERTIES") + message(FATAL_ERROR "${_missing_mode_message}") return() endif() list(LENGTH mode modeLength) if("${modeLength}" GREATER 1) - message(FATAL_ERROR "Multiple mode keyword used in cmake_print_properties() call, it must be exactly one of TARGETS SOURCES TESTS DIRECTORIES CACHE_ENTRIES PROPERTIES") + message(FATAL_ERROR + "Multiple mode keywords used in cmake_print_properties() call, there must be exactly one of ${_mode_names}.") return() endif() |