Path: blob/main/deskutils/cairo-dock-plugins/files/patch-CMakeLists.txt
16151 views
--- CMakeLists.txt.orig 2015-02-19 16:13:47 UTC1+++ CMakeLists.txt2@@ -978,9 +978,8 @@ set (with_mail no)3# find the compilation flags4enable_if_not_defined (enable-mail)5if (enable-mail)6- find_program (LIBETPAN_CONFIG_EXECUTABLE libetpan-config)7execute_process(8- COMMAND ${LIBETPAN_CONFIG_EXECUTABLE} --cflags9+ COMMAND pkg-config libetpan --cflags10OUTPUT_VARIABLE MAIL_PACKAGE_CFLAGS)11if (NOT "${MAIL_PACKAGE_CFLAGS}" STREQUAL "" AND NOT "${MAIL_PACKAGE_CFLAGS}" STREQUAL "\n") # if there is a problem with the previous, we don't want to have a lot of errors12STRING (REGEX REPLACE "\n" "" TMP_VARIABLE "${MAIL_PACKAGE_CFLAGS}") # to not skip the last option13@@ -993,7 +992,7 @@ if (enable-mail)14endif()15# find the link flags16execute_process(17- COMMAND ${LIBETPAN_CONFIG_EXECUTABLE} --libs18+ COMMAND pkg-config libetpan --libs19OUTPUT_VARIABLE MAIL_PACKAGE_LIBS)20if (NOT "${MAIL_PACKAGE_LIBS}" STREQUAL "")21STRING (REGEX REPLACE "\n" "" MAIL_PACKAGE_LIBS "${MAIL_PACKAGE_LIBS}")222324