summaryrefslogtreecommitdiff
path: root/portmidi/pm_win/static.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'portmidi/pm_win/static.cmake')
-rw-r--r--portmidi/pm_win/static.cmake24
1 files changed, 0 insertions, 24 deletions
diff --git a/portmidi/pm_win/static.cmake b/portmidi/pm_win/static.cmake
deleted file mode 100644
index 7fdad18..0000000
--- a/portmidi/pm_win/static.cmake
+++ /dev/null
@@ -1,24 +0,0 @@
-# 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
- CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
- CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO
- CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
- CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO)
- if(${flag_var} MATCHES "/MD")
- string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
- endif(${flag_var} MATCHES "/MD")
- endforeach(flag_var)
-
- message(STATUS
- "Note: overriding CMAKE_*_FLAGS_* to use Visual C static multithread library")
-endif(MSVC)