Skip to content

Commit

Permalink
Update CMakeMM.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
flagarde committed Mar 10, 2021
1 parent b05dcad commit 84f38b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeMM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ function(cmmm_check_updates)
message("${BoldYellow}## [CMakeMM] https://raw.githubusercontent.com not accessible; Use https://cdn.jsdelivr.net ##${Reset}")
endif()

if(IS_ONLINE_RAW AND "${CMMM_PROVIDER}" STREQUAL "github")
if("${IS_ONLINE_RAW}" STREQUAL "TRUE" AND "${CMMM_PROVIDER}" STREQUAL "github")
set(CMMM_GIT_URL "https://raw.githubusercontent.com/${CMMM_REPOSITORY}/master")
elseif(NOT IS_ONLINE_RAW AND "${CMMM_PROVIDER}" STREQUAL "github")
elseif("${IS_ONLINE_RAW}" STREQUAL "FALSE" AND "${CMMM_PROVIDER}" STREQUAL "github")
set(CMMM_GIT_URL "https://cdn.jsdelivr.net/gh/${CMMM_REPOSITORY}@master")
elseif("${CMMM_PROVIDER}" STREQUAL "gitlab")
set(CMMM_GIT_URL "https://gitlab.com/${CMMM_REPOSITORY}/-/raw/master")
Expand Down

0 comments on commit 84f38b7

Please sign in to comment.