From 039ac92480a09266146fc5b0c9ec67a32a2565ad Mon Sep 17 00:00:00 2001 From: saurabhb17 Date: Wed, 26 Feb 2020 16:04:40 +0530 Subject: Added secondary files --- CMakeModules/CheckFindPackageResult.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 CMakeModules/CheckFindPackageResult.cmake (limited to 'CMakeModules/CheckFindPackageResult.cmake') 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) -- cgit