aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindFOP.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/FindFOP.cmake')
-rw-r--r--cmake/modules/FindFOP.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/modules/FindFOP.cmake b/cmake/modules/FindFOP.cmake
index 1ec136149b..6383ad829d 100644
--- a/cmake/modules/FindFOP.cmake
+++ b/cmake/modules/FindFOP.cmake
@@ -21,5 +21,9 @@ FIND_PROGRAM(FOP_EXECUTABLE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(FOP DEFAULT_MSG FOP_EXECUTABLE)
+IF(${FOP_EXECUTABLE})
+ SET(FOP_OPTS -Xmx256m)
+ SET(FOP_EXECUTABLE FOP_OPTS=${FOP_OPTS} JAVA_OPTS=${FOP_OPTS} ${FOP_EXECUTABLE})
+ENDIF()
MARK_AS_ADVANCED(FOP_EXECUTABLE)