Skip to content

Commit

Permalink
Merge pull request avrdudes#1539 from mcuee/avrdude_packing
Browse files Browse the repository at this point in the history
To support MinGW cross compiler
  • Loading branch information
mcuee authored Oct 28, 2023
2 parents d6c61f5 + 54f2fe5 commit e999912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ endif()
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
add_compile_definitions(CONFIG_DIR=\"${CONFIG_DIR}\")

if(WIN32)
if(WIN32 OR MINGW)
set(EXTRA_WINDOWS_RESOURCES "${PROJECT_BINARY_DIR}/src/windows.rc")
set(EXTRA_WINDOWS_LIBRARIES setupapi hid ws2_32)
endif()
Expand Down Expand Up @@ -112,7 +112,7 @@ endif()

configure_file(cmake_config.h.in ac_cfg.h)
configure_file(avrdude.spec.in avrdude.spec)
if(WIN32)
if(WIN32 OR MINGW)
configure_file(windows.rc.in windows.rc)
endif()

Expand Down

0 comments on commit e999912

Please sign in to comment.