Skip to content

Commit 56c5df6

Browse files
Danipizarichiware
authored andcommitted
[#23483] Added 'Development.SABIModule' to all tests
Signed-off-by: danipiza <dpizarrogallego@gmail.com>
1 parent 4ad24b8 commit 56c5df6

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

fastdds_python/test/types/CMakeLists.txt

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,12 @@ endif()
195195
include(${SWIG_USE_FILE})
196196
set(CMAKE_SWIG_FLAGS "")
197197

198-
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
198+
if(USE_PYTHON_STABLE_ABI)
199+
find_package(Python3 COMPONENTS Interpreter Development.SABIModule REQUIRED)
200+
else()
201+
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
202+
endif()
203+
199204
set(PYTHON_INCLUDE_PATH ${Python3_INCLUDE_DIRS})
200205
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})
201206
set(PYTHON_LIBRARIES ${Python3_LIBRARIES})
@@ -308,7 +313,13 @@ endif()
308313
include(${SWIG_USE_FILE})
309314
set(CMAKE_SWIG_FLAGS "")
310315

311-
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
316+
317+
if(USE_PYTHON_STABLE_ABI)
318+
find_package(Python3 COMPONENTS Interpreter Development.SABIModule REQUIRED)
319+
else()
320+
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
321+
endif()
322+
312323
set(PYTHON_INCLUDE_PATH ${Python3_INCLUDE_DIRS})
313324
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})
314325
set(PYTHON_LIBRARIES ${Python3_LIBRARIES})

0 commit comments

Comments
 (0)