gameServer/CMakeLists.txt
changeset 8686 d303da4568b7
parent 8671 a9957b7797f3
child 8833 c13ebed437cb
child 9975 9fcdaa2be27e
--- a/gameServer/CMakeLists.txt	Thu Mar 07 10:11:07 2013 +0100
+++ b/gameServer/CMakeLists.txt	Thu Mar 07 10:14:12 2013 +0100
@@ -1,8 +1,7 @@
 
-find_package(GHC REQUIRED)
-if(NOT ${GHC_FOUND})
-    message(FATAL_ERROR "Missing Glasgow Haskell Compiler! Rerun cmake with -DNOSERVER=on to disable hosting LAN games")
-endif()
+include(${CMAKE_MODULE_PATH}/utils.cmake)
+
+find_package_or_disable(GHC NOSERVER)
 
 set(hwserver_sources
     OfficialServer/DBInteraction.hs