Skip to content

Commit

Permalink
Use CMake found binary path
Browse files Browse the repository at this point in the history
Actually use the binary that CMake found, rather than searching PATH again
  • Loading branch information
graeme-a-stewart committed Jan 26, 2024
1 parent 73d1969 commit a8c79ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/pythonFormat.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ find_program(BLACK_EXECUTABLE black)
if(BLACK_EXECUTABLE)
add_custom_target(
black
COMMAND black
COMMAND ${BLACK_EXECUTABLE}
${ALL_PYTHON_FILES}
)
set_target_properties(black PROPERTIES EXCLUDE_FROM_ALL TRUE)
Expand All @@ -23,7 +23,7 @@ find_program(FLAKE8_EXECUTABLE flake8)
if(FLAKE8_EXECUTABLE)
add_custom_target(
flake8
COMMAND flake8
COMMAND ${FLAKE8_EXECUTABLE}
--config=${CMAKE_CURRENT_SOURCE_DIR}/.flake8
${ALL_PYTHON_FILES}
)
Expand Down

0 comments on commit a8c79ef

Please sign in to comment.