My experimentation with git submodules was completely successful. 
Basically trivial.

To enable, in the project root directory, do a

         git submodule add <git clone string>

In the project CMakeLists.txt add something like

         add_subdirectory (<directory name>  EXCLUDE_FROM_ALL)

This will prevent unreferenced  subprojects of the submodule from 
showing up in the build and/or Visual Studio.  The only gotcha that I've 
run into is that you can edit files in the submodule, but they can never 
be committed or pushed.  Probably smart to set them all readonly.

When cloning a respository with a submodule, it's necessary to add the 
--recursive switch.

CMake also has an external project capability that has nothing to do 
with git submodules.  Don't try and mix them.

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to