summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/portmidi/pm_win/static.cmake
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/portmidi/pm_win/static.cmake')
-rw-r--r--3rdparty/portmidi/pm_win/static.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/3rdparty/portmidi/pm_win/static.cmake b/3rdparty/portmidi/pm_win/static.cmake
index ebad662aeb4..88a115c9228 100644
--- a/3rdparty/portmidi/pm_win/static.cmake
+++ b/3rdparty/portmidi/pm_win/static.cmake
@@ -1,4 +1,12 @@
# static.cmake -- change flags to link with static runtime libraries
+#
+# Even when BUILD_SHARED_LIBS is OFF, CMake specifies linking wtih
+# multithread DLL, so you give inconsistent linking instructions
+# resulting in warning messages from MS Visual Studio. If you want
+# a static binary, I've found this approach works to eliminate
+# warnings and make everything static:
+#
+# Changes /MD (multithread DLL) to /MT (multithread static)
if(MSVC)
foreach(flag_var