diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 4e8b7cdd9..96def5c8f 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -73,7 +73,7 @@ endfunction () function (find_required_program NAME FILENAME DESCRIPTION) find_program (${NAME}_BIN NAMES ${FILENAME}) - if (${NAME}_BIN STREQUAL "${${NAME}_BIN}-NOTFOUND") + if (${NAME}_BIN STREQUAL "${NAME}_BIN-NOTFOUND") print_error (${DESCRIPTION} ${FILENAME}) endif () endfunction (find_required_program)