# HG changeset patch
# User unc0rr
# Date 1289136822 -10800
# Node ID 08f4627ad2b31befa73975d063d8372777174295
# Parent  f8898d6cca6ebe3d21f65fd28fc016d5828b357e
Fix freepascal version detector to ask only version from compiler rather than all help on parameters

diff -r f8898d6cca6e -r 08f4627ad2b3 hedgewars/CMakeLists.txt
--- a/hedgewars/CMakeLists.txt	Sun Nov 07 16:21:20 2010 +0300
+++ b/hedgewars/CMakeLists.txt	Sun Nov 07 16:33:42 2010 +0300
@@ -91,7 +91,7 @@
 find_program(fpc_executable ${fpc_tryexe})
 
 if(fpc_executable)
-	 exec_program(${fpc_executable} ARGS "-h" OUTPUT_VARIABLE fpc_output)
+	 exec_program(${fpc_executable} ARGS "-iV" OUTPUT_VARIABLE fpc_output)
 endif(fpc_executable)
 
 set(noexecstack_flags "-k-z" "-knoexecstack")