Include CPP option into source file for easy use
authorunc0rr
Mon, 17 Nov 2008 16:48:38 +0000
changeset 1497 b4586b0f4426
parent 1496 bc2a166b4fd2
child 1498 264e11b5c639
Include CPP option into source file for easy use
netserver/CMakeLists.txt
netserver/hedgewars-server.hs
--- a/netserver/CMakeLists.txt	Sun Nov 16 18:16:34 2008 +0000
+++ b/netserver/CMakeLists.txt	Mon Nov 17 16:48:38 2008 +0000
@@ -14,7 +14,6 @@
 set(hwserv_main ${hedgewars_SOURCE_DIR}/netserver/hedgewars-server.hs)
 
 set(ghc_flags
-	-cpp
 	--make ${hwserv_main}
 	-i${hedgewars_SOURCE_DIR}/netserver
 	-o ${EXECUTABLE_OUTPUT_PATH}/hedgewars-server${CMAKE_EXECUTABLE_SUFFIX}
--- a/netserver/hedgewars-server.hs	Sun Nov 16 18:16:34 2008 +0000
+++ b/netserver/hedgewars-server.hs	Mon Nov 17 16:48:38 2008 +0000
@@ -1,3 +1,4 @@
+{-# LANGUAGE CPP #-}
 module Main where
 
 import Network