From: Tobias Markus Date: Tue, 3 Mar 2015 17:35:22 +0000 (+0100) Subject: Move patch command to variable X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ad2c2cb04e5185fb9b45af24ae4843b71eb3266b;p=supertux.git Move patch command to variable --- diff --git a/external/squirrel/CMakeLists.txt b/external/squirrel/CMakeLists.txt index 8a95f7f3d..d2bbecf08 100644 --- a/external/squirrel/CMakeLists.txt +++ b/external/squirrel/CMakeLists.txt @@ -21,10 +21,10 @@ ## Apply coverity patch to Squirrel? SET(APPLY_COVERITY_PATCH TRUE) - +SET(PATCH_COMMAND patch -p1 --forward -i) FIND_PROGRAM(PATCH_EXECUTABLE patch) IF(PATCH_EXECUTABLE AND APPLY_COVERITY_PATCH) - EXECUTE_PROCESS(COMMAND patch -p1 --forward -i squirrel_coverity.patch) + EXECUTE_PROCESS(COMMAND ${PATCH_COMMAND} squirrel_coverity.patch) ENDIF(PATCH_EXECUTABLE AND APPLY_COVERITY_PATCH) ## Add include/ to include directories