gameServer/CMakeLists.txt
branchwebgl
changeset 8833 c13ebed437cb
parent 8330 aaefa587e277
parent 8686 d303da4568b7
child 10015 4feced261c68
--- a/gameServer/CMakeLists.txt	Wed Feb 20 02:21:58 2013 +0100
+++ b/gameServer/CMakeLists.txt	Tue Apr 02 21:00:57 2013 +0200
@@ -1,4 +1,7 @@
 
+include(${CMAKE_MODULE_PATH}/utils.cmake)
+
+find_package_or_disable(GHC NOSERVER)
 
 set(hwserver_sources
     OfficialServer/DBInteraction.hs
@@ -34,7 +37,7 @@
     ${haskell_flags})
 
 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/hedgewars-server${CMAKE_EXECUTABLE_SUFFIX}"
-        COMMAND "${ghc_executable}"
+        COMMAND "${GHC_EXECUTABLE}"
         ARGS ${ghc_flags}
         MAIN_DEPENDENCY ${hwserv_main}
         DEPENDS ${hwserver_sources}