tools/pas2c/CMakeLists.txt
branchwebgl
changeset 9238 84e591af6c29
parent 8044 796f2653f21d
child 13868 4f123ac4f002
--- a/tools/pas2c/CMakeLists.txt	Mon Jun 17 23:10:45 2013 +0200
+++ b/tools/pas2c/CMakeLists.txt	Mon Jun 17 23:18:39 2013 +0200
@@ -1,3 +1,5 @@
+find_package(GHC REQUIRED)
+
 set(pas2c_sources
         Main.hs
         PascalBasics.hs
@@ -19,7 +21,7 @@
     )
 
 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/pas2c${CMAKE_EXECUTABLE_SUFFIX}"
-        COMMAND "${ghc_executable}"
+        COMMAND "${GHC_EXECUTABLE}"
         ARGS ${ghc_flags}
         MAIN_DEPENDENCY ${hwserv_main}
         DEPENDS ${hwserver_sources}