|
|
@@ -69,6 +69,13 @@ echo "Create initial cache"
|
|
|
echo "@INITIAL_CACHE@" > @CMAKE_RELEASE_DIRECTORY@/@CMAKE_CREATE_VERSION@-build/CMakeCache.txt
|
|
|
check_exit_value $? "Create initial cache" || exit 1
|
|
|
|
|
|
+# create a user override file user.txt if USER_OVERRIDE is set,
|
|
|
+# and append the cache variable to the cache
|
|
|
+if [ ! -z "@USER_OVERRIDE@" ]; then
|
|
|
+ echo "@USER_OVERRIDE@" > @CMAKE_RELEASE_DIRECTORY@/@CMAKE_CREATE_VERSION@-build/user.txt
|
|
|
+ echo "CMAKE_USER_MAKE_RULES_OVERRIDE:FILEPATH=@CMAKE_RELEASE_DIRECTORY@/@CMAKE_CREATE_VERSION@-build/user.txt" >> @CMAKE_RELEASE_DIRECTORY@/@CMAKE_CREATE_VERSION@-build/CMakeCache.txt
|
|
|
+fi
|
|
|
+
|
|
|
echo "Checkout the source for @CMAKE_CREATE_VERSION@"
|
|
|
cd @CMAKE_RELEASE_DIRECTORY@
|
|
|
if [ ! -z "@GIT_COMMAND@" ]; then
|