View Issue Details

IDProjectCategoryView StatusLast Update
0002147Slicer4Core: Building (CMake, Superbuild)public2012-07-27 14:40
Reportergregsharp Assigned Tojcfr  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.1.1Fixed in VersionSlicer 4.1.1 
Summary0002147: UseSlicer requires GIT_EXECUTABLE
Description

Including UseSlicer.cmake requires the caller to first set GIT_EXECUTABLE. If this variable is not set, the following error occurs:

CMake Error at C:/gcs6/build/slicer-4/Slicer4/Extensions/CMake/SlicerBlockUploadExtension.cmake:19 (message):
Variable GIT_EXECUTABLE is set to an inexistent directory or file !
[GIT_EXECUTABLE-NOTFOUND]
Call Stack (most recent call first):
C:/gcs6/build/slicer-4/Slicer4/Extensions/CMake/SlicerEnableExtensionTesting.cmake:19 (include)
C:/gcs6/build/slicer-4/Slicer-build/Slicer-build/UseSlicer.cmake:373 (include)

Additional Information

Similar problems will presumably occur if Subversion_SVN_EXECUTABLE is not defined, but I didn't test this.

TagsNo tags attached.

Activities

jcfr

jcfr

2012-05-31 15:35

administrator   ~0004717

Consider reading the comments at the top of https://github.com/Slicer/Slicer/blob/master/CMake/UseSlicer.cmake.in

You could skip the requirement of Git/svn by settings Slicer_SKIP_SlicerEnableExtensionTesting to True

That said, note that building your extension with testing is required so that your extension can be tested by our dashboard on a nightly basis.

To get a better understanding of why git and svn are required, you could have a look at [1], [2], [3] and [4]

In a nutshell, git or svn are used to extract information associated with the source repository.

[1] https://github.com/Slicer/Slicer/blob/master/Extensions/CMake/SlicerEnableExtensionTesting.cmake
[2] https://github.com/Slicer/Slicer/blob/master/Extensions/CMake/SlicerBlockUploadExtension.cmake#L56
[3] https://github.com/Slicer/Slicer/blob/master/Extensions/CMake/SlicerBlockBuildPackageAndUploadExtension.cmake#L134
[4] https://github.com/Slicer/Slicer/blob/master/CMake/SlicerExtensionCPack.cmake#L50

jcfr

jcfr

2012-05-31 15:49

administrator   ~0004718

Last edited: 2012-05-31 15:50

STYLE: Add missing comment in UseSlicer.cmake.in

See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=20299
Also back-ported to 4.1.1 - See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=20300

jcfr

jcfr

2012-07-27 14:40

administrator   ~0005285

Closing resolved issues that have not been updated in more than 2 months.

Issue History

Date Modified Username Field Change
2012-05-31 15:19 gregsharp New Issue
2012-05-31 15:19 gregsharp Status new => assigned
2012-05-31 15:19 gregsharp Assigned To => jcfr
2012-05-31 15:35 jcfr Note Added: 0004717
2012-05-31 15:35 jcfr Status assigned => resolved
2012-05-31 15:35 jcfr Fixed in Version => Slicer 4.1.1 - June 1st 2012
2012-05-31 15:35 jcfr Resolution open => fixed
2012-05-31 15:49 jcfr Note Added: 0004718
2012-05-31 15:50 jcfr Note Edited: 0004718
2012-05-31 15:50 jcfr Target Version => Slicer 4.1.1 - June 1st 2012
2012-07-27 14:40 jcfr Note Added: 0005285
2012-07-27 14:40 jcfr Status resolved => closed