From c73f4cee39df4793e3d00016ffb75c429af68581 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Thu, 11 Nov 2010 13:21:45 -0600 Subject: [PATCH] Add _debug to the end of the library name on Windows in debug mode --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 892742d..6504a1b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -24,6 +24,7 @@ set(API if(WIN32) list(APPEND SOURCES io_win.c) + set(CMAKE_DEBUG_POSTFIX _debug) else() list(APPEND SOURCES io_nix.c) endif() @@ -33,6 +34,7 @@ if(MSVC) endif() add_library(wiiuse SHARED ${SOURCES} ${API}) + if(WIN32) target_link_libraries(wiiuse Ws2_32.lib ${WINHID_LIBRARIES} setupapi.lib) elseif(LINUX)