--- a/gameServer/CMakeLists.txt Tue May 22 11:19:32 2012 +0200
+++ b/gameServer/CMakeLists.txt Wed May 23 22:46:37 2012 +0200
@@ -1,8 +1,3 @@
-find_program(ghc_executable ghc)
-
-if(NOT ghc_executable)
- message(FATAL_ERROR "Cannot find GHC")
-endif(NOT ghc_executable)
set(hwserver_sources
@@ -35,9 +30,8 @@
-i${hedgewars_SOURCE_DIR}/gameServer
-o ${EXECUTABLE_OUTPUT_PATH}/hedgewars-server${CMAKE_EXECUTABLE_SUFFIX}
-odir ${CMAKE_CURRENT_BINARY_DIR}
- -hidir ${CMAKE_CURRENT_BINARY_DIR})
-
-set(ghc_flags ${haskell_compiler_flags_cmn} ${ghc_flags})
+ -hidir ${CMAKE_CURRENT_BINARY_DIR}
+ ${haskell_flags})
add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/hedgewars-server${CMAKE_EXECUTABLE_SUFFIX}"
COMMAND "${ghc_executable}"