Move patch command to variable
authorTobias Markus <tobbi@mozilla-uk.org>
Tue, 3 Mar 2015 17:35:22 +0000 (18:35 +0100)
committerTobias Markus <tobbi@mozilla-uk.org>
Tue, 3 Mar 2015 17:35:22 +0000 (18:35 +0100)
external/squirrel/CMakeLists.txt

index 8a95f7f..d2bbecf 100644 (file)
 
 ## 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