[CMake] Checking if git submodules have been initialized

2012-05-09 Thread David Doria
I have recently started using git submodules in my projects. I have had multiple complains from my users It gives me a missing xyz.h type of error when I try to compile. The reason is that they haven't initialized the submodules (like it says to do in the readme :) ). Is there a CMake way to check

Re: [CMake] Checking if git submodules have been initialized

2012-05-09 Thread Arnaud Gelas
if( NOT EXISTS ${MY_SOURCE_DIR}/project/.git ) message( SEND_ERROR The git submodules are not available. Please run git submodule update --init --recursive ) endif() HTH On 05/09/2012 02:52 PM, David Doria wrote: I have recently started using git submodules in my projects. I have had multiple