Skip to content

Commit 8701867

Browse files
FletterioAnastaZIuk
authored andcommitted
add NBL_OPENEXR_FORCE_SSH /Arek (some agents seems to not like passing keys to CMake it seems)
1 parent a5155e7 commit 8701867

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

3rdparty/CMakeLists.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,16 @@ option(_NBL_COMPILE_WITH_OPEN_EXR_ "Build with OpenEXR library" ON)
203203
# but it's core
204204

205205
# for new build system it doesn't matter since we no more fetch content stuff, temporary to fix current master CMake clones
206-
set(OPENEXR_DEFLATE_REPO "git@github.com:ebiggers/libdeflate.git" CACHE STRING "Repo path for libdeflate source" FORCE)
207-
set(OPENEXR_IMATH_REPO "git@github.com:AcademySoftwareFoundation/Imath.git" CACHE STRING "Repo for auto-build of Imath" FORCE)
206+
207+
option(NBL_OPENEXR_FORCE_SSH "" ON)
208+
209+
if(NBL_OPENEXR_FORCE_SSH)
210+
set(OPENEXR_DEFLATE_REPO "git@github.com:ebiggers/libdeflate.git" CACHE STRING "Repo path for libdeflate source" FORCE)
211+
set(OPENEXR_IMATH_REPO "git@github.com:AcademySoftwareFoundation/Imath.git" CACHE STRING "Repo for auto-build of Imath" FORCE)
212+
else()
213+
set(OPENEXR_DEFLATE_REPO "https://github.com/ebiggers/libdeflate.git" CACHE STRING "Repo path for libdeflate source" FORCE)
214+
set(OPENEXR_IMATH_REPO "https://github.com/AcademySoftwareFoundation/Imath.git" CACHE STRING "Repo for auto-build of Imath" FORCE)
215+
endif()
208216

209217
set(_OLD_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
210218
set(_OLD_BUILD_STATIC_LIBS ${BUILD_STATIC_LIBS})

0 commit comments

Comments
 (0)