Skip to content

Commit

Permalink
fix cmake script for homebrew a2x (libjxl#3825)
Browse files Browse the repository at this point in the history
(cherry picked from commit a9a6d42)
  • Loading branch information
jonsneyers authored and mo271 committed Nov 26, 2024
1 parent 81d275d commit 9212d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ if(JPEGXL_ENABLE_MANPAGES)
find_program(ASCIIDOC a2x)
if(ASCIIDOC)
file(STRINGS "${ASCIIDOC}" ASCIIDOC_SHEBANG LIMIT_COUNT 1)
if(ASCIIDOC_SHEBANG MATCHES "sh$" OR MINGW)
if(ASCIIDOC_SHEBANG MATCHES "sh$" OR ASCIIDOC_SHEBANG MATCHES "libexec/bin/python$" OR MINGW)
set(ASCIIDOC_PY_FOUND ON)
# Run the program directly and set ASCIIDOC as empty.
set(ASCIIDOC_PY "${ASCIIDOC}")
Expand Down

0 comments on commit 9212d84

Please sign in to comment.