Skip to content

Commit

Permalink
CMake: Fix success message when dependency is found (mikke89#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpersano authored Jan 16, 2025
1 parent ebd72ce commit c00201e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMake/RmlUiConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ macro(report_dependency_found_or_error friendly_name package_name target_name)
if(NOT TARGET ${target_name})
report_dependency_not_found(${friendly_name} ${package_name} ${target_name})
endif()
if(ARGC GREATER "2" AND ARGV2)
set(success_message " - ${ARGV2}")
set(success_message "")
if(${ARGC} GREATER 3)
set(success_message " - ${ARGV3}")
endif()
message(STATUS "Found ${friendly_name} target ${target_name}${success_message}")
endmacro()
Expand Down

0 comments on commit c00201e

Please sign in to comment.