<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">I've been having great success with using ExternalProject over the terrible git submodules. However, when using Visual Studio, the following error happens: <br><br><div style="margin-left:40px"> Performing download step (git clone) for 'catch-lib'<br>2>  Cloning into 'catch-lib'...<br>2>  Note: checking out 'tags/v1.3.4'.<br>2><br>2>  You are in 'detached HEAD' state. You can look around, make experimental<br>2>  changes and commit them, and you can discard any commits you make in this<br>2>  state without impacting any branches by performing another checkout.<br>2><br>2>  If you want to create a new branch to retain commits you create, you may<br>2>  do so (now or later) by using -b with the checkout command again. Example:<br>2><br>2>    git checkout -b <new-branch-name><br>2><br>2>  HEAD is now at 3b4edd7... Build for v1.3.4<br>2>  fatal: 'submodule' appears to be a git command, but we were not<br>2>  able to execute it. Maybe git-submodule is broken?<br>2>  CMake Error at C:/Users/kevin/dev/sol2/vendor/tmp/catch-lib-gitclone.cmake:58 (message):<br>2>    Failed to init submodules in:<br>2>    'C:/Users/kevin/dev/sol2/vendor/src/catch-lib'<br clear="all"></div></div><br><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">​The CMake file is located here: <a href="https://github.com/Nava2/sol2/blob/cmake-build/CMakeLists.txt">https://github.com/Nava2/sol2/blob/cmake-build/CMakeLists.txt</a><br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">Steps I've verified: <br><ul><li>git.exe is on my system PATH</li><li>The submodule URL is valid</li><li>Builds on OSX/Linux</li><li>Reinstalled git (twice)​</li></ul></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">​I'm new to Visual Studio (I work primarily with Linux/OSX), so I'm sure I'm missing something along the way. <br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">Thanks,​</div><br>--<br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(11,83,148)"><span style="color:rgb(11,83,148)"><span style="font-family:tahoma,sans-serif">Kevin Brightwell<i>. BESc., BSc.</i><br></span><div style="color:rgb(11,83,148);display:inline"><span style="font-family:tahoma,sans-serif">​MESc. Candidate 2017<br>Western University​</span></div></span> </span><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>