> if(EXISTS ${CMAKE_ROOT}/Modules/Foo.cmake) > include(${CMAKE_ROOT}/Modules/Foo.cmake) > else() > ... > endif() If I have 2.8.2 installed on the host, but my software has 2.8.6 module imported, the version 2.8.2 will be selected. Therefore, it will "break". I think it needs more restricted check. Best Regards, Laszlo Papp