--- a/netserver/CMakeLists.txt Sat Oct 18 13:01:33 2008 +0000
+++ b/netserver/CMakeLists.txt Sat Oct 18 13:26:17 2008 +0000
@@ -16,7 +16,9 @@
set(ghc_flags
--make ${hwserv_main}
-i${hedgewars_SOURCE_DIR}/netserver
- -o ${EXECUTABLE_OUTPUT_PATH}/hedgewars-server${CMAKE_EXECUTABLE_SUFFIX})
+ -o ${EXECUTABLE_OUTPUT_PATH}/hedgewars-server${CMAKE_EXECUTABLE_SUFFIX}
+ -odir ${CMAKE_CURRENT_BINARY_DIR}
+ -hidir ${CMAKE_CURRENT_BINARY_DIR})
add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/hedgewars-server${CMAKE_EXECUTABLE_SUFFIX}"
COMMAND "${ghc_executable}"