Skip to content

Commit 3588035

Browse files
author
Dominique Würtz
committed
Strip whitespace from OPTION_VALUE (fixes cpm-cmake#635)
1 parent 97023e8 commit 3588035

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/CPM.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,7 @@ function(cpm_parse_option OPTION)
11691169
else()
11701170
math(EXPR OPTION_KEY_LENGTH "${OPTION_KEY_LENGTH}+1")
11711171
string(SUBSTRING "${OPTION}" "${OPTION_KEY_LENGTH}" "-1" OPTION_VALUE)
1172+
string(STRIP "${OPTION_VALUE}" OPTION_VALUE)
11721173
endif()
11731174
set(OPTION_KEY
11741175
"${OPTION_KEY}"

0 commit comments

Comments
 (0)