We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba4ca0b commit f8a2f02Copy full SHA for f8a2f02
1 file changed
CMakeLists.txt
@@ -49,8 +49,12 @@ endif()
49
50
if(NOT ITK_SOURCE_DIR)
51
list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR})
52
- include(GetGitRevisionDescription)
53
- get_git_head_revision(GIT_REFSPEC GIT_SHA1)
+endif()
+include(GetGitRevisionDescription)
54
+get_git_head_revision(GIT_REFSPEC GIT_SHA1)
55
+if(GIT_SHA1 MATCHES ".*NOTFOUND")
56
+ set(CudaCommon_VERSION_HASH "")
57
+else()
58
set(CudaCommon_VERSION_HASH ", git hash ${GIT_SHA1}")
59
endif()
60
@@ -92,7 +96,6 @@ if(NOT ITK_SOURCE_DIR)
92
96
"Modules can only be built against an ITK build tree; they cannot be built against an ITK install tree."
93
97
)
94
98
95
-
99
include(ITKModuleExternal)
100
else()
101
set(ITK_DIR ${CMAKE_BINARY_DIR})
0 commit comments