Skip to content

Commit 77911ec

Browse files
committed
debug10
1 parent 35de7be commit 77911ec

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
cmake_minimum_required(VERSION 3.16)
22
project(PyDP LANGUAGES CXX)
33

4+
# 1. Keep MSVC runtime Dynamic (Python standard)
45
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
5-
# 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)
6+
7+
# 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)
89

910
# Force Abseil to use dynamic runtime if it has a toggle
1011
set(ABSL_PROPAGATE_CXX_STD ON CACHE BOOL "" FORCE)

0 commit comments

Comments
 (0)