diff --git a/cmake/Conky.cmake b/cmake/Conky.cmake index b9605de8..d9fd1503 100644 --- a/cmake/Conky.cmake +++ b/cmake/Conky.cmake @@ -71,10 +71,10 @@ set(VERSION_MAJOR "1") set(VERSION_MINOR "10") set(VERSION_PATCH "1") -find_program(APP_GAWK gawk) -if(NOT APP_GAWK) - message(FATAL_ERROR "Unable to find program 'gawk'") -endif(NOT APP_GAWK) +find_program(APP_AWK awk) +if(NOT APP_AWK) + message(FATAL_ERROR "Unable to find program 'awk'") +endif(NOT APP_AWK) find_program(APP_WC wc) if(NOT APP_WC) @@ -99,7 +99,7 @@ if(NOT RELEASE) mark_as_advanced(APP_GIT) endif(NOT RELEASE) -mark_as_advanced(APP_GAWK APP_WC APP_DATE APP_UNAME) +mark_as_advanced(APP_AWK APP_WC APP_DATE APP_UNAME) #BUILD_DATE=$(LANG=en_US LC_ALL=en_US LOCALE=en_US date) #BUILD_ARCH="$(uname -sr) ($(uname -m))" diff --git a/cmake/ConkyCPackSetup.cmake b/cmake/ConkyCPackSetup.cmake index a5689228..c1046efa 100644 --- a/cmake/ConkyCPackSetup.cmake +++ b/cmake/ConkyCPackSetup.cmake @@ -44,7 +44,7 @@ endif(CPACK_GENERATOR MATCHES "NSIS") # Source package setup. Compile with "make package_source". set(CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${VERSION}-src") set(CPACK_SOURCE_GENERATOR "TBZ2") -execute_process(COMMAND ${APP_UNAME} COMMAND ${APP_GAWK} "{print $1}" +execute_process(COMMAND ${APP_UNAME} COMMAND ${APP_AWK} "{print $1}" RESULT_VARIABLE RETVAL OUTPUT_VARIABLE CPU_ARCH OUTPUT_STRIP_TRAILING_WHITESPACE) diff --git a/cmake/ConkyPlatformChecks.cmake b/cmake/ConkyPlatformChecks.cmake index ca520ed2..a2ebafcb 100644 --- a/cmake/ConkyPlatformChecks.cmake +++ b/cmake/ConkyPlatformChecks.cmake @@ -422,6 +422,6 @@ if(DEBUG) execute_process(COMMAND ${APP_GIT} --git-dir=${CMAKE_CURRENT_SOURCE_DIR}/.git log --since=${VERSION_MAJOR}-${VERSION_MINOR}-01 --pretty=oneline COMMAND - ${APP_WC} -l COMMAND ${APP_GAWK} "{print $1}" RESULT_VARIABLE RETVAL + ${APP_WC} -l COMMAND ${APP_AWK} "{print $1}" RESULT_VARIABLE RETVAL OUTPUT_VARIABLE COMMIT_COUNT OUTPUT_STRIP_TRAILING_WHITESPACE) endif(DEBUG)