I have run cmake on a package, but the resultant make fails because certain packages aren’t being included properly. Can I edit the specific find*.cmake files to point to the correct place?
Currently, the corresponding cmake file is find_tbb.make:
include(CheckIncludeFileCXX)
check_include_file_cxx(tbb/tbb.h HAVE_TBB)
I suppose that this means it is looking in tbb/tbb.h for the files. My files aren’t there, so can I edit this line of the file to point to a better place?
I recommend you to edit the generated CMakeCache.txt instead.
CMake has been designed with the thought that for some reason, the Find* modules can fail, leaving the task to the user to fill the correct values, usually left blank in the cache, or with a value like
ttb_NOT_FOUND.The
ccmakeorcmake-guitools are there specifically for that, they present a friendly interface to edit entries in the CMake cache.