From 70cbceab08865b9356f8c23d1b1c945d0100bf4c Mon Sep 17 00:00:00 2001 From: Kai He Date: Mon, 3 Aug 2020 17:16:09 +0800 Subject: [PATCH] fix CMakeLists.txt --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6df43c8..1785031 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,8 +34,8 @@ execute_process(COMMAND ${PYTHON} -c "import paddle;print(paddle.version.full_ve RESULT_VARIABLE ret OUTPUT_VARIABLE paddle_version OUTPUT_STRIP_TRAILING_WHITESPACE) if (NOT ret) - if (NOT ${paddle_version} STREQUAL "1.8.0") - message(FATAL_ERROR "Paddle installation of 1.8.0 is required but ${paddle_version} is found") + if (NOT ${paddle_version} STRGREATER_EQUAL "1.8.0") + message(FATAL_ERROR "Paddle installation of >= 1.8.0 is required but ${paddle_version} is found") endif() else() message(FATAL_ERROR "Could not get paddle version.") -- GitLab