vcpkg/ports/discord-rpc/fix-debug.diff
Ted John e57d38a812 [discord-rpc] Add v2.0.1
- Not properly configured for debug builds and always forced /MT. Fixed by patching cmake.
- Unable to stop building of examples, so delete afterwards.
2017-11-11 19:57:27 +00:00

25 lines
718 B
Diff

--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -30,7 +30,6 @@ if(WIN32)
set(BASE_RPC_SRC ${BASE_RPC_SRC} connection_win.cpp discord_register_win.cpp)
add_library(discord-rpc ${RPC_LIBRARY_TYPE} ${BASE_RPC_SRC})
target_compile_options(discord-rpc PRIVATE /EHsc
- /MT
/Wall
/wd4100 # unreferenced formal parameter
/wd4514 # unreferenced inline
@@ -102,13 +101,10 @@ install(
EXPORT "discord-rpc"
RUNTIME
DESTINATION "bin"
- CONFIGURATIONS Release
LIBRARY
DESTINATION "lib"
- CONFIGURATIONS Release
ARCHIVE
DESTINATION "lib"
- CONFIGURATIONS Release
INCLUDES
DESTINATION "include"
)