I want to set a couple of custom directories of mine to be searched for cmake modules when I use include( foo.cmake ). However, I can&#39;t seem to get this to work. My code is basically:<div><br>set( CMAKE_MODULE_PATH &quot;{CMAKE_SOURCE_DIR}/cmake&quot; )<br>
include( foo.cmake )</div><div><br>This, however, does not work. It says it cannot load the file. Am I doing this wrong? Keep in mind that I really want to PREPEND to the CMAKE_MODULE_PATH variable, as I only want my custom directories to be searched *first*, but I do not want to override the default search path for include modules. How can I do this?</div>