Fix freepascal version detector to ask only version from compiler rather than all help on parameters
authorunc0rr
Sun, 07 Nov 2010 16:33:42 +0300
changeset 4158 08f4627ad2b3
parent 4157 f8898d6cca6e
child 4159 64e677349124
Fix freepascal version detector to ask only version from compiler rather than all help on parameters
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")