vcpkg/ports/realsense2/crt-linkage-restriction.patch

22 lines
754 B
Diff
Raw Normal View History

diff --git a/CMakeLists.txt b/CMakeLists.txt
2018-01-09 20:48:11 +08:00
index d6717b19..3fb373be 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
2018-01-09 20:48:11 +08:00
@@ -453,16 +453,6 @@ if(WIN32)
src/proc/syncer-processing-block.h
2018-01-09 20:48:11 +08:00
src/proc/disparity-transform.h
2017-11-07 15:59:02 +08:00
)
-
- 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)
else()
endif()