Skip to content

Commit

Permalink
Add a helper error message to findcppcheck.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpavlik committed May 14, 2012
1 parent 9e8b357 commit 1c73e35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Findcppcheck.cmake
Expand Up @@ -64,6 +64,9 @@ set(CMAKE_FIND_APPBUNDLE ${_oldappbundlesetting})
# Find out where our test file is # Find out where our test file is
get_filename_component(_cppcheckmoddir ${CMAKE_CURRENT_LIST_FILE} PATH) get_filename_component(_cppcheckmoddir ${CMAKE_CURRENT_LIST_FILE} PATH)
set(_cppcheckdummyfile "${_cppcheckmoddir}/Findcppcheck.cpp") 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) function(_cppcheck_test_arg _resultvar _arg)
if(NOT CPPCHECK_EXECUTABLE) if(NOT CPPCHECK_EXECUTABLE)
Expand Down

0 comments on commit 1c73e35

Please sign in to comment.