Skip to content

Commit 4b46d88

Browse files
Danipizarichiware
authored andcommitted
[#23483] Added cmake-arg in the tests
Signed-off-by: danipiza <dpizarrogallego@gmail.com>
1 parent 7ab9ccd commit 4b46d88

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

fastdds_python/test/types/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,12 @@ endif()
7878
include(${SWIG_USE_FILE})
7979
set(CMAKE_SWIG_FLAGS "")
8080

81-
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
81+
if(USE_PYTHON_STABLE_ABI)
82+
find_package(Python3 COMPONENTS Interpreter Development.SABIModule REQUIRED)
83+
else()
84+
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
85+
endif()
86+
8287
set(PYTHON_INCLUDE_PATH ${Python3_INCLUDE_DIRS})
8388
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})
8489
set(PYTHON_LIBRARIES ${Python3_LIBRARIES})

fastdds_python_examples/HelloWorldExample/generated_code/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,12 @@ endif()
7878
include(${SWIG_USE_FILE})
7979
set(CMAKE_SWIG_FLAGS "")
8080

81-
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
81+
if(USE_PYTHON_STABLE_ABI)
82+
find_package(Python3 COMPONENTS Interpreter Development.SABIModule REQUIRED)
83+
else()
84+
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
85+
endif()
86+
8287
set(PYTHON_INCLUDE_PATH ${Python3_INCLUDE_DIRS})
8388
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})
8489
set(PYTHON_LIBRARIES ${Python3_LIBRARIES})

fastdds_python_examples/RPCExample/generated_code/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ endif()
7373
include(${SWIG_USE_FILE})
7474
set(CMAKE_SWIG_FLAGS "")
7575

76-
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
76+
if(USE_PYTHON_STABLE_ABI)
77+
find_package(Python3 COMPONENTS Interpreter Development.SABIModule REQUIRED)
78+
else()
79+
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
80+
endif()
81+
7782
set(PYTHON_INCLUDE_PATH ${Python3_INCLUDE_DIRS})
7883
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})
7984
set(PYTHON_LIBRARIES ${Python3_LIBRARIES})

0 commit comments

Comments
 (0)