[Paraview-developers] Build error - Windows
Chris Harris
chris.harris at kitware.com
Fri Nov 9 22:09:40 EST 2012
Hi Alan,
I think this was a result of a change I made, sorry about that. I guess
none of our test environments don't have git. Please try the following
patch:
git apply patch.txt
Regards,
Chris
On Nov 9, 2012 9:07 PM, "Scott, W Alan" <wascott at sandia.gov> wrote:
> Utkarsh,
> I am seeing the following cmake error when trying to build ParaView. This
> is a master pull from a few minutes ago. Clean pull. As always, this is
> from behind a firewall, thus Kitware git cannot be found.
>
> Could NOT find Git (missing: GIT_EXECUTABLE)
> CMake Error at CMake/ParaViewDetermineVersion.cmake:54 (string):
> string sub-command REGEX, mode MATCH needs at least 5 arguments total to
> command.
> Call Stack (most recent call first):
> CMakeLists.txt:90 (determine_version)
>
> Thanks,
>
> Alan
>
>
>
>
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20121109/2ca1e912/attachment.htm>
-------------- next part --------------
diff --git a/CMake/ParaViewDetermineVersion.cmake b/CMake/ParaViewDetermineVersion.cmake
index aa2a037..02b86a9 100644
--- a/CMake/ParaViewDetermineVersion.cmake
+++ b/CMake/ParaViewDetermineVersion.cmake
@@ -50,7 +50,7 @@ function(determine_version source_dir git_command var_prefix)
set(output ${PARAVIEW_GIT_DESCRIBE})
endif()
- if (${result} EQUAL 0)
+ if (${result} EQUAL 0 AND output)
string(REGEX MATCH "([0-9]+)\\.([0-9]+)\\.([0-9]+)[-]*(.*)"
version_matches ${output})
if (CMAKE_MATCH_0)
More information about the Paraview-developers
mailing list