On Friday 17 September 2010, norulez wrote:
> Hello,
>
> is there a way in cmake to determine if it is a svn or git working copy to
> use the individual commands?
>
> Such as:
>
> If svn then FindPackage(Svn).....
> Else if git then FindPackage(Git)...
something like the following should work:
if(EXISTS ${CMAKE_SOURCE_DIR}/.svn )
...
Alex
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake