Skip to content

Commit

Permalink
cmake/automake: Prevent builds with unsupported HAVE_PARPORT
Browse files Browse the repository at this point in the history
Prevent builds with unsupported HAVE_PARPORT on MacOS
  • Loading branch information
ndim committed Aug 8, 2024
1 parent f90236c commit 3e38c9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,11 @@ if(BUILD_DOC)
add_subdirectory(src/doc)
endif()

if(WIN32)
if(HAVE_PARPORT)
if(HAVE_PARPORT)
if(WIN32)
message(FATAL_ERROR "avrdude does not support parallel port on Windows")
elseif(APPLE)
message(FATAL_ERROR "avrdude does not support parallel port on Apple systems")
endif()
endif()

Expand Down
3 changes: 3 additions & 0 deletions src/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,9 @@ AS_IF([test "x$enabled_parport" = xyes], [dnl
*-*-mingw32* | *-*-cygwin* | *-*-windows*)
AC_MSG_ERROR([avrdude does not support parallel port on Windows])
;;
*-*-darwin*)
AC_MSG_ERROR([avrdude does not support parallel port on MacOS])
;;
esac
])

Expand Down

0 comments on commit 3e38c9b

Please sign in to comment.