Skip to content

Commit

Permalink
To adopt PR avrdudes#1264 approach of using Readline replacement for …
Browse files Browse the repository at this point in the history
…MinGW build
  • Loading branch information
mcuee authored Nov 1, 2023
1 parent 6991bd3 commit e812c1c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ if(MSVC)
set(EXTRA_WINDOWS_INCLUDES ${EXTRA_WINDOWS_INCLUDES}
"msvc"
)
elseif(MINGW)
set(LIB_MATH m)
add_compile_options(-Wall -Wextra -Wno-unused-parameter)
set(EXTRA_WINDOWS_SOURCES ${EXTRA_WINDOWS_SOURCES}
"msvc/readline.cpp"
)
else()
set(LIB_MATH m)
add_compile_options(-Wall -Wextra -Wno-unused-parameter)
Expand Down

0 comments on commit e812c1c

Please sign in to comment.