diff --git a/.travis.yml b/.travis.yml index 4927dfe2..a0dd7f48 100644 --- a/.travis.yml +++ b/.travis.yml @@ -157,7 +157,7 @@ install: return 0 } script: - - export CMAKE_ARGS="-DLUA_LIBRARY=${LUALIBRARY} -DLUA_INCLUDE_DIR=${LUAINCLUDE} -D OVERRIDE_VERSION=$AWESOME_VERSION -DSTRICT_TESTS=true -D DO_COVERAGE=$DO_COVERAGE" + - export CMAKE_ARGS="-DLUA_LIBRARY=${LUALIBRARY} -DLUA_INCLUDE_DIR=${LUAINCLUDE} -D OVERRIDE_VERSION=$AWESOME_VERSION -DSTRICT_TESTS=true -D DO_COVERAGE=$DO_COVERAGE -D CMAKE_C_FLAGS=-Werror" - | if [ "$EMPTY_THEME_WHILE_LOADING" = 1 ]; then # Break beautiful so that trying to access the theme before beautiful.init() causes an error diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index 892b88e6..ea1d6057 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -158,8 +158,8 @@ set(AWESOME_DEPENDENCIES pkg_check_modules(AWESOME_REQUIRED REQUIRED ${AWESOME_DEPENDENCIES}) # Check for backtrace_symbols() -include(CheckFunctionExists) -check_function_exists(backtrace_symbols HAS_EXECINFO) +include(CheckSymbolExists) +check_symbol_exists(backtrace_symbols execinfo.h HAS_EXECINFO) if(NOT HAS_EXECINFO) find_library(LIB_EXECINFO execinfo) if(LIB_EXECINFO) @@ -176,11 +176,11 @@ else() endif() # Do we need libm for round()? -check_function_exists(round HAS_ROUND_WITHOUT_LIBM) +check_symbol_exists(round math.h HAS_ROUND_WITHOUT_LIBM) if(NOT HAS_ROUND_WITHOUT_LIBM) SET(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} m) set(AWESOME_REQUIRED_LDFLAGS ${AWESOME_REQUIRED_LDFLAGS} m) - check_function_exists(round HAS_ROUND_WITH_LIBM) + check_symbol_exists(round math.h HAS_ROUND_WITH_LIBM) if(NOT HAS_ROUND_WITH_LIBM) message(FATAL_ERROR "Did not find round()") endif()