[aquaria] [PATCH] CMakeLists.txt nits

Andrew Church achurch+aquaria at achurch.org
Tue May 3 22:34:52 EDT 2011


Just a couple of nits I noticed in the CMake control file.

  --Andrew Church
    achurch at achurch.org
    http://achurch.org/

# HG changeset patch
# User Andrew Church <achurch at achurch.org>
# Date 1304429598 -32400
# Node ID 0b56caa5273cf695fce545bde049453666c2aa46
# Parent  40a8fea2fe5e663c3a71b3f54338739f9980507f
Fix CMakeLists.txt error messages.

This patch corrects the message() calls for errors generated during
CMakeLists.txt processing so they properly abort the configuration, and
fixes a couple of typos in the messages.

diff -r 40a8fea2fe5e -r 0b56caa5273c CMakeLists.txt
--- a/CMakeLists.txt	Sun Apr 24 09:41:23 2011 +0900
+++ b/CMakeLists.txt	Tue May 03 22:33:18 2011 +0900
@@ -144,10 +144,10 @@
             set(SDL_LIBRARY_TEMP "${SDLDIR}/lib/win32/SDL.lib" CACHE INTERNAL "")
             set(SDL_LIBRARY ${SDLMAIN_LIBRARY} ${SDL_LIBRARY_TEMP} CACHE STRING "Where the SDL library can be found")
         else(MSVC)
-            message(ERROR "We don't have prebuilt SDL for this environment.")
+            message(SEND_ERROR "We don't have a prebuilt SDL for this environment.")
         endif(MSVC)
     else(MACOSX)
-        message(ERROR "We don't have a prebuilt SDL for this platform.")
+        message(SEND_ERROR "We don't have a prebuilt SDL for this platform.")
     endif(MACOSX)
 endif (NOT SDL_FOUND)
 
@@ -165,10 +165,10 @@
             message(STATUS "Using internal copy of OpenAL")
             set(OPENAL_LIBRARY "${OPENALDIR}/lib/win32/OpenAL32.lib" CACHE FILEPATH "Where the OpenAL library can be found" FORCE)
         else(MSVC)
-            message(ERROR "We don't have prebuilt OpenAL for this environment.")
+            message(SEND_ERROR "We don't have a prebuilt OpenAL for this environment.")
         endif(MSVC)
     else(WIN32)
-        message(ERROR "We don't have a prebuilt OpenAL for this platform.")
+        message(SEND_ERROR "We don't have a prebuilt OpenAL for this platform.")
     endif(WIN32)
 endif (NOT OPENAL_FOUND)
 


More information about the aquaria mailing list