We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35de7be commit 77911ecCopy full SHA for 77911ec
1 file changed
CMakeLists.txt
@@ -1,10 +1,11 @@
1
cmake_minimum_required(VERSION 3.16)
2
project(PyDP LANGUAGES CXX)
3
4
+# 1. Keep MSVC runtime Dynamic (Python standard)
5
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
-# Force Protobuf to build with dynamic runtime (/MD)
6
-set(protobuf_BUILD_SHARED_LIBS ON CACHE BOOL "" FORCE)
7
-set(protobuf_MSVC_STATIC_RUNTIME OFF CACHE BOOL "" FORCE)
+
+# 2. Force third-party libraries to be built statically so they are baked into the wheel
8
+set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
9
10
# Force Abseil to use dynamic runtime if it has a toggle
11
set(ABSL_PROPAGATE_CXX_STD ON CACHE BOOL "" FORCE)
0 commit comments