File: CheckFindPackageResult.cmake

package info (click to toggle)
kicad 9.0.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 770,320 kB
  • sloc: cpp: 961,692; ansic: 121,001; xml: 66,428; python: 18,387; sh: 1,010; awk: 301; asm: 292; makefile: 227; javascript: 167; perl: 10
file content (8 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (13)
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)