diff options
| -rw-r--r-- | CMakeLists.txt | 6 | ||||
| -rw-r--r-- | po/CMakeLists.txt | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5be898b..bd5d528 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,7 +118,7 @@ ENDIF ( ENABLE_DEBUG ) IF ( DEVELOPER ) ADD_DEFINITIONS ( -DDEBUG ) # if somebody asks yes i am insane - SET ( CMAKE_C_FLAGS "-g -O0 -pipe -Wall -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wold-style-definition -Wdeclaration-after-statement -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Winline -Wformat-nonliteral -Wformat-security -Wswitch-enum -Wswitch-default -Winit-self -Wmissing-include-dirs -Wundef -Waggregate-return -Wmissing-format-attribute -Wnested-externs -Wunsafe-loop-optimizations" ) + SET ( CMAKE_C_FLAGS "-g -O0 -pipe -Wall -Werror -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wold-style-definition -Wdeclaration-after-statement -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Winline -Wformat-nonliteral -Wformat-security -Wswitch-enum -Wswitch-default -Winit-self -Wmissing-include-dirs -Wundef -Waggregate-return -Wmissing-format-attribute -Wnested-externs -Wunsafe-loop-optimizations" ) ENDIF ( DEVELOPER ) ############################################################################### # BASIC DIRECTORIES FOR INCLUSION @@ -211,9 +211,9 @@ IF ( ENABLE_COMPRESSION ) ) INSTALL ( FILES ${CMAKE_BINARY_DIR}/${_doc}.gz DESTINATION ${CMAKE_INSTALL_DOCDIR}/ ) - LIST(APPEND _docFiles ${_doc}.gz ) + LIST ( APPEND _docFiles ${_doc}.gz ) ENDFOREACH ( doc ) - ADD_CUSTOM_TARGET(docs ALL DEPENDS ${_docFiles}) + ADD_CUSTOM_TARGET ( docs ALL DEPENDS ${_docFiles} ) ELSE ( ENABLE_COMPRESSION ) INSTALL ( FILES ${tuxanci_docs} DESTINATION ${CMAKE_INSTALL_DOCDIR}/ ) diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index b603755..6c8e7e9 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -16,8 +16,8 @@ SET ( _gmoFiles ) # if it is set to some value, install those ############################################################################### FOREACH ( _current_PO_FILE ${_po_files} ) - GET_FILENAME_COMPONENT( _lang ${_current_PO_FILE} NAME_WE ) - SET( _gmoFile ${CMAKE_BINARY_DIR}/po/${_lang}.gmo ) + GET_FILENAME_COMPONENT ( _lang ${_current_PO_FILE} NAME_WE ) + SET ( _gmoFile ${CMAKE_BINARY_DIR}/po/${_lang}.gmo ) ADD_CUSTOM_COMMAND ( OUTPUT ${_gmoFile} COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${_gmoFile} ${_current_PO_FILE} WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" @@ -25,7 +25,7 @@ FOREACH ( _current_PO_FILE ${_po_files} ) ) INSTALL ( FILES ${CMAKE_BINARY_DIR}/po/${_lang}.gmo DESTINATION ${CMAKE_INSTALL_LOCALEDIR}/${_lang}/LC_MESSAGES/ RENAME tuxanci.mo ) - LIST(APPEND _gmoFiles ${_gmoFile}) -ENDFOREACH(_current_PO_FILE) -ADD_CUSTOM_TARGET(pofiles ALL DEPENDS ${_gmoFiles}) + LIST ( APPEND _gmoFiles ${_gmoFile} ) +ENDFOREACH ( _current_PO_FILE ) +ADD_CUSTOM_TARGET ( pofiles ALL DEPENDS ${_gmoFiles} ) ############################################################################### |