Skip to content

Commit f4080a0

Browse files
authored
Update to use normalized URIs (#5)
1 parent f19237e commit f4080a0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

example/CMLibStorage.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11

2+
FIND_PAcKAGE(CMLIB COMPONENTS CMUTIL REQUIRED)
3+
24
SET(STORAGE_LIST TESTLIB)
35

46
# Define URI for TESTLIB storage. We can use CMLIB ENV variables
5-
SET(STORAGE_LIST_TESTLIB "${CMLIB_REQUIRED_ENV_REMOTE_URL}/cmakelib-test.git")
7+
CMUTIL_NORMALIZE_GIT_URI(
8+
URI "${CMLIB_REQUIRED_ENV_REMOTE_URL}/cmakelib-test.git"
9+
OUTPUT_VAR STORAGE_LIST_TESTLIB
10+
)

example/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PROJECT(CMLIB_ENV_TEST)
44
#
55
# For CMLIB installation guide look att cmakelib repository readme
66
#
7-
FIND_PACKAGE(CMLIB COMPONENTS STORAGE)
7+
FIND_PACKAGE(CMLIB COMPONENTS STORAGE CMUTIL)
88

99
IF(MY_STORAGE_VARIABLE STREQUAL "StorageVariable")
1010
MESSAGE(STATUS "---> STORAGE sucessfully inicialized! Yup!")

0 commit comments

Comments
 (0)