X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Lib%2FCMake%2Fkll.cmake;h=71df3b7319b9fe91bcd94a4ea27f8334d938fb1b;hb=7c4e31277cf64bac234a7b61545ece4a86839b98;hp=2e53ddd815bd7077a205c07d55eadac12148f586;hpb=1e9f55a0bfd7f8253c2869d095e42a497ba3b3c2;p=kiibohd-controller.git diff --git a/Lib/CMake/kll.cmake b/Lib/CMake/kll.cmake index 2e53ddd..71df3b7 100644 --- a/Lib/CMake/kll.cmake +++ b/Lib/CMake/kll.cmake @@ -19,9 +19,9 @@ if ( "${MacroModule}" STREQUAL "PartialMap" ) # KLL Installation (Make sure repo has been cloned) # -message ( STATUS "Checking for latest kll version:" ) - if ( NOT EXISTS "${PROJECT_SOURCE_DIR}/kll/kll.py" ) + message ( STATUS "Downloading latest kll version:" ) + # Make sure git is available find_package ( Git REQUIRED ) @@ -29,7 +29,9 @@ if ( NOT EXISTS "${PROJECT_SOURCE_DIR}/kll/kll.py" ) execute_process ( COMMAND ${GIT_EXECUTABLE} clone https://github.com/kiibohd/kll.git WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} ) -else () # Otherwise attempt to update the repo +elseif ( REFRESH_KLL ) # Otherwise attempt to update the repo + message ( STATUS "Checking for latest kll version:" ) + # Clone kll git repo execute_process ( COMMAND ${GIT_EXECUTABLE} pull --rebase WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/kll