diff options
author | saurabhb17 | 2020-02-26 16:20:48 +0530 |
---|---|---|
committer | GitHub | 2020-02-26 16:20:48 +0530 |
commit | b77f5d9d8097c38159c6f60917995d6af13bbe1c (patch) | |
tree | 1392c90227aeea231c1d86371131e04c40382918 /CMakeModules/CheckFindPackageResult.cmake | |
parent | dadc4d490966a24efe15b5cc533ef8695986048a (diff) | |
parent | 003d02608917e7a69d1a98438837e94ccf68352a (diff) | |
download | KiCad-eSim-b77f5d9d8097c38159c6f60917995d6af13bbe1c.tar.gz KiCad-eSim-b77f5d9d8097c38159c6f60917995d6af13bbe1c.tar.bz2 KiCad-eSim-b77f5d9d8097c38159c6f60917995d6af13bbe1c.zip |
Merge pull request #4 from FOSSEE/develop
merging dev into master
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) |