summaryrefslogtreecommitdiff
path: root/CMakeModules/CheckFindPackageResult.cmake
blob: 3cb1a2107bffb8cf3807149eccf962fe5623c6a8 (plain)
1
2
3
4
5
6
7
8
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")
        message(FATAL_ERROR "${_PKGNAME} was not found - it is required to build Kicad")
    endif(${_VAR})
endmacro(check_find_package_result)