Skip to content

Commit 9f6aae9

Browse files
committed
Fix bug in YggdrasilRapidJSONConfig where Python embedding library was loaded as a dependency for Python extensions resulting in cmake warning about unsupported dynamic linking
1 parent fe51386 commit 9f6aae9

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Because YggdrasilRapidJSON continues to merge updates from RapidJSON, the RapidJ
55

66
## 1.1.0.6 - 2026-XX-XX
77

8+
* Fix bug in YggdrasilRapidJSONConfig where Python embedding library was loaded as a dependency for Python extensions resulting in cmake warning about unsupported dynamic linking
89

910
## 1.1.0.5 - 2026-07-08
1011

YggdrasilRapidJSONConfig.cmake.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ list(GET @PROJECT_NAME@_INCLUDE_DIR 0 @PROJECT_NAME@_INCLUDE_DIR)
3030

3131
if(NOT (YGGDRASIL_DISABLE_PYTHON_C_API OR DISABLE_YGGDRASIL_RAPIDJSON))
3232
include(CMakeFindDependencyMacro)
33-
find_dependency(Python3 COMPONENTS Interpreter Development NumPy)
33+
if(YGGDRASIL_RAPIDJSON_PYTHON_WRAPPER)
34+
find_dependency(Python3 COMPONENTS Interpreter Development.Module NumPy)
35+
else()
36+
find_dependency(Python3 COMPONENTS Interpreter Development NumPy)
37+
endif()
3438
endif()
3539

3640
yggdrasil_rapidjson_config_init(@PROJECT_NAME@_INTERFACE)

0 commit comments

Comments
 (0)