Add _debug to the end of the library name on Windows in debug mode
This commit is contained in:
@@ -24,6 +24,7 @@ set(API
|
|||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
list(APPEND SOURCES io_win.c)
|
list(APPEND SOURCES io_win.c)
|
||||||
|
set(CMAKE_DEBUG_POSTFIX _debug)
|
||||||
else()
|
else()
|
||||||
list(APPEND SOURCES io_nix.c)
|
list(APPEND SOURCES io_nix.c)
|
||||||
endif()
|
endif()
|
||||||
@@ -33,6 +34,7 @@ if(MSVC)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(wiiuse SHARED ${SOURCES} ${API})
|
add_library(wiiuse SHARED ${SOURCES} ${API})
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
target_link_libraries(wiiuse Ws2_32.lib ${WINHID_LIBRARIES} setupapi.lib)
|
target_link_libraries(wiiuse Ws2_32.lib ${WINHID_LIBRARIES} setupapi.lib)
|
||||||
elseif(LINUX)
|
elseif(LINUX)
|
||||||
|
|||||||
Reference in New Issue
Block a user