We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e16c46c + 624c593 commit 81cee5aCopy full SHA for 81cee5a
CMakeLists.txt
@@ -135,6 +135,15 @@ if(NOT GIT_PROTOCOL)
135
OUTPUT_STRIP_TRAILING_WHITESPACE)
136
if(NOT res EQUAL 0)
137
set(temp_git_protocol "http://")
138
+ execute_process(COMMAND "${GIT_EXECUTABLE}" ls-remote "http://github.com/UV-CDAT/uvcdat.git"
139
+ WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
140
+ RESULT_VARIABLE res
141
+ OUTPUT_VARIABLE out
142
+ ERROR_QUIET
143
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
144
+ if (NOT res EQUAL 0)
145
+ set(temp_git_protocol "https://")
146
+ endif()
147
endif()
148
149
set(GIT_PROTOCOL ${temp_git_protocol} CACHE STRING "Choose protocol to be used by git" FORCE)
0 commit comments