Commit 3e769ff4 authored by Alex Richardson's avatar Alex Richardson Committed by Nate Graham
Browse files

Use a function instead of a macro.

See PR!1757
parent 47cff0c9
Pipeline #208021 passed with stage
in 6 minutes and 9 seconds
......@@ -121,11 +121,11 @@ set_package_properties(X11 PROPERTIES DESCRIPTION "X11 libraries"
URL "https://www.x.org"
TYPE OPTIONAL
PURPOSE "Required for building the X11 based workspace")
macro(check_X11_lib)
if (NOT TARGET X11::${ARGV0})
message(SEND_ERROR "Required component ${ARGV0} of X11 was not found")
function(check_X11_lib _lib)
if (NOT TARGET X11::${_lib})
message(SEND_ERROR "Required component ${_lib} of X11 was not found")
endif()
endmacro()
endfunction()
check_X11_lib(ICE)
check_X11_lib(SM)
check_X11_lib(X11)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment