Skip to content

Commit

Permalink
Merge pull request #438 from bartlettroscoe/433-improve-note-output
Browse files Browse the repository at this point in the history
Add beginning '-- ' to NOTE for general link arguments (#299, #433)
  • Loading branch information
bartlettroscoe authored Dec 15, 2021
2 parents 2d6196e + a934680 commit c8abb33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ function(unittest_tribits_external_package_process_libraries_list_incl_dirs_0_li
)

unittest_compare_const( MESSAGE_WRAPPER_INPUT
"NOTE: Moving the general link argument '-mkl' in TPL_${tplName}_LIBRARIES forward on the link line which may change the link and break the link!"
"-- NOTE: Moving the general link argument '-mkl' in TPL_${tplName}_LIBRARIES forward on the link line which may change the link and break the link!"
)

unittest_compare_const( libTargetsList
Expand Down Expand Up @@ -415,7 +415,7 @@ function(unittest_tribits_external_package_process_libraries_list_incl_dirs_0_li
)

unittest_compare_const( MESSAGE_WRAPPER_INPUT
"NOTE: Moving the general link argument '-' in TPL_SomeTpl_LIBRARIES forward on the link line which may change the link and break the link!"
"-- NOTE: Moving the general link argument '-' in TPL_SomeTpl_LIBRARIES forward on the link line which may change the link and break the link!"
)

unittest_compare_const( libTargetsList
Expand Down Expand Up @@ -791,7 +791,7 @@ function(unittest_tribits_external_package_write_config_file_str_incl_dirs_1_bad
tplConfigFileStr )

unittest_compare_const( MESSAGE_WRAPPER_INPUT
"SEND_ERROR;ERROR: Can't handle argument 'some=nonsupported-opt' in list TPL_SomeTpl_LIBRARIES;NOTE: Moving the general link argument '-o' in TPL_SomeTpl_LIBRARIES forward on the link line which may change the link and break the link!"
"SEND_ERROR;ERROR: Can't handle argument 'some=nonsupported-opt' in list TPL_SomeTpl_LIBRARIES;-- NOTE: Moving the general link argument '-o' in TPL_SomeTpl_LIBRARIES forward on the link line which may change the link and break the link!"
)

unittest_string_block_compare( tplConfigFileStr
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ function(tribits_external_package_process_libraries_list tplName)
elseif (libEntryType STREQUAL "LIB_DIR_LINK_OPTION")
list(APPEND libLinkFlagsList "${libentry}")
elseif (libEntryType STREQUAL "GENERAL_LINK_OPTION")
message_wrapper("NOTE: Moving the general link argument '${libentry}' in TPL_${tplName}_LIBRARIES forward on the link line which may change the link and break the link!")
message_wrapper("-- NOTE: Moving the general link argument '${libentry}' in TPL_${tplName}_LIBRARIES forward on the link line which may change the link and break the link!")
list(APPEND libLinkFlagsList "${libentry}")
else()
tribits_external_package_process_libraries_list_library_entry(
Expand Down

0 comments on commit c8abb33

Please sign in to comment.