Skip to content

Commit 8b61c9d

Browse files
committed
CMake: Move MSVC compatibility shim into library
1 parent 4601bee commit 8b61c9d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
5151
add_compile_definitions(CONFIG_DIR=\"${CONFIG_DIR}\")
5252

5353
if(WIN32)
54-
set(EXTRA_WINDOWS_SOURCES "${PROJECT_BINARY_DIR}/src/windows.rc")
54+
set(EXTRA_WINDOWS_RESOURCES "${PROJECT_BINARY_DIR}/src/windows.rc")
5555
set(EXTRA_WINDOWS_LIBRARIES setupapi ws2_32)
5656
endif()
5757

@@ -216,6 +216,7 @@ add_library(libavrdude
216216
xbee.c
217217
${FLEX_Parser_OUTPUTS}
218218
${BISON_Parser_OUTPUTS}
219+
"${EXTRA_WINDOWS_SOURCES}"
219220
)
220221

221222
set_target_properties(libavrdude PROPERTIES
@@ -253,7 +254,7 @@ add_executable(avrdude
253254
term.h
254255
whereami.c
255256
whereami.h
256-
"${EXTRA_WINDOWS_SOURCES}"
257+
"${EXTRA_WINDOWS_RESOURCES}"
257258
)
258259

259260
target_link_libraries(avrdude PUBLIC libavrdude)

0 commit comments

Comments
 (0)