@@ -3,10 +3,10 @@ project ( OpenXcom )
33cmake_minimum_required ( VERSION 2.8 )
44set ( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR } /cmake/modules" )
55
6- option ( DEV_BUILD "Developement Build. Turn off for release" ON )
7- option ( BUILD_PACKAGE "Add need rules to build packages " ON )
8- option ( ENABLE_WARNING "Always show warnings(even for release build " OFF )
9- option ( FATAL_WARNING "Treats warnings as errors" OFF )
6+ option ( DEV_BUILD "Development Build. Disable this for release builds " ON )
7+ option ( BUILD_PACKAGE "Prepares build for creation of a package with CPack " ON )
8+ option ( ENABLE_WARNING "Always show warnings (even for release builds) " OFF )
9+ option ( FATAL_WARNING "Treat warnings as errors" OFF )
1010set ( MSVC_WARNING_LEVEL 3 CACHE STRING "Visual Studio warning levels" )
1111
1212if ( WIN32 )
@@ -15,13 +15,13 @@ endif ()
1515
1616if ( APPLE )
1717 set ( MACOS_SDLMAIN_M_PATH "${CMAKE_SOURCE_DIR } " CACHE STRING "Path to SDLMain.m file" )
18- option ( CREATE_BUNDLE "Create a MACOS bundle application" ON )
18+ option ( CREATE_BUNDLE "Create a Mac OS application bundle " ON )
1919 if ( NOT EXISTS "${MACOS_SDLMAIN_M_PATH} " )
20- message ( FATAL_ERROR "On MacOS , SDLMain.m is needed. please set the MACOS_SDLMAIN_M_PATH variable" )
20+ message ( FATAL_ERROR "On Mac OS , SDLMain.m is required. Please set the MACOS_SDLMAIN_M_PATH variable" )
2121 endif ()
2222endif ()
2323
24- set ( DEPS_DIR "${default_deps_dir} " CACHE STRING "Deps directory" )
24+ set ( DEPS_DIR "${default_deps_dir} " CACHE STRING "Dependencies directory" )
2525
2626# Add check for library (SDL_gfx, yaml-cpp )
2727if ( IS_DIRECTORY ${DEPS_DIR} )
@@ -40,28 +40,28 @@ else ( )
4040 find_package ( Yaml_cpp )
4141
4242 if ( NOT SDL_FOUND )
43- message ( FATAL_ERROR "SDL is needed " )
43+ message ( FATAL_ERROR "Can't find SDL which is required " )
4444 else ()
4545 include_directories ( ${SDL_INCLUDE_DIR} )
4646 message ( "found SDL ${SDL_MAJOR} .${SDL_MINOR} .${SDL_MICRO} (${SDL_LIBRARY_DIRS} :${SDL_INCLUDE_DIR} )" )
4747 endif ()
4848
4949 if ( NOT SDLMIXER_FOUND )
50- message ( FATAL_ERROR "SDL_mixer is needed " )
50+ message ( FATAL_ERROR "Can't find SDL_mixer which is required " )
5151 else ()
5252 include_directories ( ${SDLMIXER_INCLUDE_DIR} )
5353 message ( "found SDL_mixer ${SDL_MIXER_MAJOR} .${SDL_MIXER_MINOR} .${SDL_MIXER_MICRO} (${SDL_MIXER_LIBRARY_DIRS} :${SDLMIXER_INCLUDE_DIR} )" )
5454 endif ()
5555
5656 if ( NOT SDLGFX_FOUND )
57- message ( FATAL_ERROR "SDL_gfx is needed " )
57+ message ( FATAL_ERROR "Can't find SDL_gfx which is required " )
5858 else ()
5959 include_directories ( ${SDLGFX_INCLUDE_DIR} )
6060 message ( "found SDL_gfx ${SDL_GFX_MAJOR} .${SDL_GFX_MINOR} .${SDL_GFX_MICRO} (${SDL_GFX_LIBRARY_DIRS} :${SDLGFX_INCLUDE_DIR} )" )
6161 endif ()
6262
6363 if ( NOT YAMLCPP_FOUND )
64- message ( FATAL_ERROR "yaml-cpp is needed " )
64+ message ( FATAL_ERROR "Can't find yaml-cpp which is required " )
6565 else ()
6666 include_directories ( ${YAMLCPP_INCLUDE_DIR} )
6767 message ( "found yaml-cpp(${YAMLCPP_LIBRARY_DIRS} :${YAMLCPP_INCLUDE_DIR} )" )
@@ -104,18 +104,18 @@ if ( BUILD_PACKAGE )
104104 if ( NOT DEV_BUILD )
105105 string ( LENGTH "${git_dirty} " is_dirty )
106106 if ( ${is_dirty} GREATER 0 )
107- message ( FATAL_ERROR "Released package should be built from a clean tree" )
107+ message ( FATAL_ERROR "Release package must be built from a clean tree" )
108108 endif ()
109109 if ( "${CMAKE_BUILD_TYPE } " STREQUAL "Debug" )
110- message ( FATAL_ERROR "Released package should not be built from a debug build" )
110+ message ( FATAL_ERROR "Release package can't be built from a debug build" )
111111 endif ()
112112 endif ( )
113113 set ( CPACK_PACKAGE_VENDOR "The OpenXcom project" )
114114 set ( CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR } /README.txt" )
115115 if ( NOT APPLE )
116116 set ( CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR } /COPYING" )
117117 endif ()
118- set ( CPACK_PACKAGE_CONTACT "The OpenXcom project(http://www.openxcom.org)" )
118+ set ( CPACK_PACKAGE_CONTACT "The OpenXcom project (http://www.openxcom.org)" )
119119 include ( deb )
120120 include ( rpm )
121121 include ( nsis )
@@ -126,4 +126,4 @@ if ( BUILD_PACKAGE )
126126endif ()
127127
128128add_subdirectory ( docs )
129- add_subdirectory ( src )
129+ add_subdirectory ( src )
0 commit comments