Fix out-of-source build
authorunc0rr
Sat, 18 Oct 2008 13:26:17 +0000
changeset 1373 ca719502b87f
parent 1372 69ceb24d40d0
child 1374 f33fa81e583d
Fix out-of-source build
netserver/CMakeLists.txt
--- 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}"