diff options
Diffstat (limited to 'CMakeModules/CheckFindPackageResult.cmake')
-rw-r--r-- | CMakeModules/CheckFindPackageResult.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeModules/CheckFindPackageResult.cmake b/CMakeModules/CheckFindPackageResult.cmake new file mode 100644 index 0000000..3cb1a21 --- /dev/null +++ b/CMakeModules/CheckFindPackageResult.cmake @@ -0,0 +1,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) |