Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a helper error message to findcppcheck.

  • Loading branch information...
commit 1c73e35a03d140fe4a9e1265ecf4af68d4269b22 1 parent 9e8b357
@rpavlik authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  Findcppcheck.cmake
View
3  Findcppcheck.cmake
@@ -64,6 +64,9 @@ set(CMAKE_FIND_APPBUNDLE ${_oldappbundlesetting})
# Find out where our test file is
get_filename_component(_cppcheckmoddir ${CMAKE_CURRENT_LIST_FILE} PATH)
set(_cppcheckdummyfile "${_cppcheckmoddir}/Findcppcheck.cpp")
+if(NOT EXISTS "${_cppcheckdummyfile}")
+ message(FATAL_ERROR "Missing file ${_cppcheckdummyfile} - should be alongside Findcppcheck.cmake, can be found at https://github.com/rpavlik/cmake-modules")
+endif()
function(_cppcheck_test_arg _resultvar _arg)
if(NOT CPPCHECK_EXECUTABLE)
Please sign in to comment.
Something went wrong with that request. Please try again.