changeset 273:07060ac3c813

Disabling automatic refresh of kll repo unless specifically enabled cmake -DREFRESH_KLL=1 ..
author Jacob Alexander <haata@kiibohd.com>
date Mon, 09 Feb 2015 12:14:45 -0800
parents 5b66d1da5377
children 6816f4ec783e
files Lib/CMake/kll.cmake
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Lib/CMake/kll.cmake	Sun Jan 25 17:53:48 2015 -0800
+++ b/Lib/CMake/kll.cmake	Mon Feb 09 12:14:45 2015 -0800
@@ -19,9 +19,9 @@
 # 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:" )
 
-if ( NOT EXISTS "${PROJECT_SOURCE_DIR}/kll/kll.py" )
 	# Make sure git is available
 	find_package ( Git REQUIRED )
 
@@ -29,7 +29,9 @@
 	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