summaryrefslogtreecommitdiff
path: root/CMakeModules/CheckFindPackageResult.cmake
diff options
context:
space:
mode:
authorsaurabhb172020-02-26 16:14:17 +0530
committerGitHub2020-02-26 16:14:17 +0530
commit003d02608917e7a69d1a98438837e94ccf68352a (patch)
tree1392c90227aeea231c1d86371131e04c40382918 /CMakeModules/CheckFindPackageResult.cmake
parent886d9cb772e81d2e5262284bc3082664f084337f (diff)
parente255d0622297488c1c52755be670733418c994cf (diff)
downloadKiCad-eSim-003d02608917e7a69d1a98438837e94ccf68352a.tar.gz
KiCad-eSim-003d02608917e7a69d1a98438837e94ccf68352a.tar.bz2
KiCad-eSim-003d02608917e7a69d1a98438837e94ccf68352a.zip
Merge pull request #3 from saurabhb17/master
secondary files
Diffstat (limited to 'CMakeModules/CheckFindPackageResult.cmake')
-rw-r--r--CMakeModules/CheckFindPackageResult.cmake8
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)