Browse Source

Disabling automatic refresh of kll repo unless specifically enabled

cmake -DREFRESH_KLL=1 ..
simple
Jacob Alexander 9 years ago
parent
commit
7c4e31277c
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      Lib/CMake/kll.cmake

+ 5
- 3
Lib/CMake/kll.cmake View File

# KLL Installation (Make sure repo has been cloned) # KLL Installation (Make sure repo has been cloned)
# #


message ( STATUS "Checking for latest kll version:" )

if ( NOT EXISTS "${PROJECT_SOURCE_DIR}/kll/kll.py" ) if ( NOT EXISTS "${PROJECT_SOURCE_DIR}/kll/kll.py" )
message ( STATUS "Downloading latest kll version:" )

# Make sure git is available # Make sure git is available
find_package ( Git REQUIRED ) find_package ( Git REQUIRED )


execute_process ( COMMAND ${GIT_EXECUTABLE} clone https://github.com/kiibohd/kll.git execute_process ( COMMAND ${GIT_EXECUTABLE} clone https://github.com/kiibohd/kll.git
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} 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 # Clone kll git repo
execute_process ( COMMAND ${GIT_EXECUTABLE} pull --rebase execute_process ( COMMAND ${GIT_EXECUTABLE} pull --rebase
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/kll WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/kll