Skip to content

Commit

Permalink
fixup! review comments:
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelKoch committed Nov 14, 2023
1 parent 5a71a2b commit 5fbecd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ endif()

if(GINKGO_DEVEL_TOOLS)
find_program(PRE_COMMIT pre-commit)
if(NOT ${PRE_COMMIT})
if(NOT PRE_COMMIT)
message(FATAL_ERROR "The pre-commit command was not found. It is necessary if you want to commit changes to Ginkgo. "
"If that is not the case, set GINKGO_DEVEL_TOOLS=OFF. "
"Otherwise install pre-commit via pipx (or pip) using:\n"
Expand All @@ -367,7 +367,7 @@ if(GINKGO_DEVEL_TOOLS)
RESULT_VARIABLE pre-commit-result
OUTPUT_VARIABLE pre-commit-output
ERROR_VARIABLE pre-commit-error)
if(${pre-commit-result})
if(pre-commit-result)
message(FATAL_ERROR
"Failed to install the git hooks via pre-commit. Please check the error message:\n"
"${pre-commit-output}\n${pre-commit-error}")
Expand Down

0 comments on commit 5fbecd0

Please sign in to comment.