Browse Source

Corrected usage of message() command for showing CMake status.

weitjong 12 years ago
parent
commit
598c24a4aa

+ 1 - 1
Source/CMake/Modules/FindDirect3D.cmake

@@ -67,7 +67,7 @@ if (WIN32)
         include (FindPackageMessage)
         FIND_PACKAGE_MESSAGE (Direct3D "Found DirectX SDK: ${DIRECT3D_LIBRARY} ${DIRECT3D_INCLUDE_DIR}" "[${DIRECT3D_LIBRARY}][${DIRECT3D_INCLUDE_DIR}]")
     else ()
-        message ("-- DirectX SDK not found. This is not fatal if a recent Windows SDK is installed")
+        message (STATUS "DirectX SDK not found. This is not fatal if a recent Windows SDK is installed")
         # Set non-absolute fallback library names and assume they are found in default library directories
         set (DIRECT3D_LIBRARY d3d9)
         set (DIRECT3D_COMPILER_LIBRARY d3dcompiler)

+ 5 - 5
Source/CMake/Modules/Urho3D-CMake-magic.cmake

@@ -163,8 +163,8 @@ else ()
                     set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse")
                     set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse")
                 else ()
-                    message ("-- Using SSE2 instead of SSE because SSE fails on some Windows ports of GCC")
-                    message ("-- Disable SSE with the CMake option -DENABLE_SSE=0 if this is not desired")
+                    message (STATUS "Using SSE2 instead of SSE because SSE fails on some Windows ports of GCC")
+                    message (STATUS "Disable SSE with the CMake option -DENABLE_SSE=0 if this is not desired")
                     set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse2")
                     set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse2")
                 endif ()
@@ -237,9 +237,9 @@ endfunction ()
 # Override builtin function to suit our need, takes care of C flags as well as CXX flags
 function (add_compiler_export_flags)
     if (NOT ANDROID AND NOT MSVC AND NOT DEFINED USE_COMPILER_HIDDEN_VISIBILITY AND NOT DEFINED COMPILER_HAS_DEPRECATED)
-        message ("-- Following tests check whether compiler installed in this system has export/import and deprecated attributes support")
-        message ("-- CMake will generate a suitable export header file for this system based on the test result")
-        message ("-- It is OK to proceed to build Urho3D regardless of the test result")
+        message (STATUS "Following tests check whether compiler installed in this system has export/import and deprecated attributes support")
+        message (STATUS "CMake will generate a suitable export header file for this system based on the test result")
+        message (STATUS "It is OK to proceed to build Urho3D regardless of the test result")
     endif ()
     _test_compiler_hidden_visibility ()
     _test_compiler_has_deprecated ()

+ 5 - 5
Source/ThirdParty/SDL/CMakeLists.txt

@@ -15,8 +15,8 @@ if (WIN32)
         add_definitions (-DSDL_HAPTIC_DINPUT)
         set (HAPTIC_DRIVER windows)
     else ()
-        message ("-- Building SDL without DX joystick support due to missing wbemcli.h")
-        message ("-- For MSVC, get it from Windows 7 SDK. For MinGW, get it from eg. Wine sources or from MinGW-w64")
+        message (STATUS "Building SDL without DX joystick support due to missing wbemcli.h")
+        message (STATUS "For MSVC, get it from Windows 7 SDK. For MinGW, get it from eg. Wine sources or from MinGW-w64")
         add_definitions (-DSDL_JOYSTICK_WINMM)
         add_definitions (-DSDL_HAPTIC_DUMMY)
         set (HAPTIC_DRIVER dummy)
@@ -55,9 +55,9 @@ else ()
         include_directories (${X11_INCLUDE_DIRS})  
 
         if (NOT DEFINED HAVE_CONST_XEXT_ADDDISPLAY)
-            message ("-- Following tests check whether X11 library installed in this system uses _Xconst in below functions")
-            message ("-- A failed test result simply means the installed X11 library does not use _Xconst")
-            message ("-- It is OK to proceed to build Urho3D regardless of the test result")
+            message (STATUS "Following tests check whether X11 library installed in this system uses _Xconst in below functions")
+            message (STATUS "A failed test result simply means the installed X11 library does not use _Xconst")
+            message (STATUS "It is OK to proceed to build Urho3D regardless of the test result")
         endif ()
         include (CheckCSourceCompiles)
         set  (CMAKE_REQUIRED_LIBRARIES ${X11_LIB} ${X11_LIB})