]>
Commit | Line | Data |
---|---|---|
296c1e5f MB |
1 | --- evolution-3.24.0/CMakeLists.txt.fixhighlight 2017-03-21 20:36:57.843919570 +0100 |
2 | +++ evolution-3.24.0/CMakeLists.txt 2017-03-21 20:38:53.841009779 +0100 | |
3 | @@ -627,11 +627,14 @@ set(plugins_standard | |
4 | add_printable_option(ENABLE_TEXT_HIGHLIGHT "Enable text-highlight plugin" ON) | |
5 | ||
6 | if(ENABLE_TEXT_HIGHLIGHT) | |
7 | - find_program(HIGHLIGHT_COMMAND highlight) | |
8 | + set(HIGHLIGHT_COMMAND "") | |
9 | + if(HIGHLIGHT_COMMAND STREQUAL "") | |
10 | + set(HIGHLIGHT_COMMAND "$ENV{HIGHLIGHT}") | |
11 | + endif(HIGHLIGHT_COMMAND STREQUAL "") | |
12 | ||
13 | - if(NOT HIGHLIGHT_COMMAND) | |
14 | + if(HIGHLIGHT_COMMAND STREQUAL "") | |
15 | message(FATAL_ERROR "The 'highlight' program not found; either give it into PATH or disable higlight plugin with -DENABLE_TEXT_HIGHLIGHT=OFF") | |
16 | - endif(NOT HIGHLIGHT_COMMAND) | |
17 | + endif(HIGHLIGHT_COMMAND STREQUAL "") | |
18 | endif(ENABLE_TEXT_HIGHLIGHT) | |
19 | ||
20 | # weather calendar |