cmake_modules/FindFreepascal.cmake
changeset 8195 37d47f09f981
parent 8188 4c166505e5c8
child 8283 af97cdbb7713
--- a/cmake_modules/FindFreepascal.cmake	Mon Dec 03 01:43:52 2012 +0100
+++ b/cmake_modules/FindFreepascal.cmake	Mon Dec 03 01:45:59 2012 +0100
@@ -13,8 +13,9 @@
 
     string(REGEX MATCH "[0-9]+\\.[0-9]+" FPC_VERSION_LONG "${FPC_VERSION_FULL}")
     string(REGEX REPLACE "([0-9]+\\.[0-9]+)" "\\1" FPC_VERSION "${FPC_VERSION_LONG}")
+    message(STATUS "Found Freepascal: ${FPC_EXECUTABLE} (version ${FPC_VERSION}")
 else()
-    message(FATAL_ERROR "Freepascal not found (required for hedgewars)")
+    message(FATAL_ERROR "Could NOT find Freepascal")
 endif()
 
 # Check for noexecstack flag support
@@ -32,3 +33,4 @@
 else(TEST_NOEXECSTACK)
     message(STATUS "Checking whether linker needs explicit noexecstack -- yes")
 endif(TEST_NOEXECSTACK)
+