Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ if(MSVC)
"${LIBUSB_ROOT}/../msvc/getopt/getopt1.c"
)
# Need to pass HAVE_CONFIG_H so getopt.h can load the config header
target_compile_definitions(getoptMSVC PRIVATE HAVE_CONFIG_H)
# _GL_UNUSED: gnulib no-op attribute macro, empty for MSVC
target_compile_definitions(getoptMSVC PRIVATE HAVE_CONFIG_H _GL_UNUSED=)
target_include_directories(getoptMSVC
PUBLIC "${LIBUSB_ROOT}/../msvc/getopt/"
PRIVATE "${LIBUSB_GEN_INCLUDES}"
Expand Down
Loading