2008-04-13 14:00:01 +00:00
|
|
|
macro(check_find_package_result _VAR _PKGNAME)
|
|
|
|
if(${_VAR})
|
|
|
|
message(STATUS "Check for installed ${_PKGNAME} -- found")
|
|
|
|
else(${_VAR})
|
|
|
|
message(STATUS "Check for installed ${_PKGNAME} -- not found")
|
2008-05-05 18:23:24 +00:00
|
|
|
message(FATAL_ERROR "${_PKGNAME} was not found - it is required to build Kicad")
|
2008-04-13 14:00:01 +00:00
|
|
|
endif(${_VAR})
|
|
|
|
endmacro(check_find_package_result)
|