Skip to content

Commit ef0d2c0

Browse files
committed
WIP: mod: cmake/modules/FindUnifySDK.cmake (review/9/main)
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
1 parent c4e6ea0 commit ef0d2c0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

cmake/modules/FindUnifySDK.cmake

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
include(FetchContent)
22

33
if(NOT DEFINED UNIFYSDK_GIT_REPOSITORY)
4-
set(UNIFYSDK_GIT_REPOSITORY git@github.com:SiliconLabs/UnifySDK_test.git)
4+
if(DEFINED $ENV{UNIFYSDK_GIT_REPOSITORY})
5+
set(UNIFYSDK_GIT_REPOSITORY $ENV{UNIFYSDK_GIT_REPOSITORY})
6+
else()
7+
set(UNIFYSDK_GIT_REPOSITORY https://github.com/SiliconLabs/UnifySDK)
8+
endif()
59
endif()
610

711
# TODO: Pin stable revision once supported
812
if(NOT DEFINED UNIFYSDK_GIT_TAG)
9-
set(UNIFYSDK_GIT_TAG z-wave/main)
13+
if(DEFINED $ENV{UNIFYSDK_GIT_REPOSITORY})
14+
set(UNIFYSDK_GIT_REPOSITORY $ENV{UNIFYSDK_GIT_REPOSITORY})
15+
else()
16+
set(UNIFYSDK_GIT_TAG main)
17+
endif()
1018
endif()
1119

1220
FetchContent_Declare(

0 commit comments

Comments
 (0)