Skip to content

Commit 8751a18

Browse files
committed
Refs #23644. Fix on windows
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
1 parent cce5373 commit 8751a18

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

fastdds_python/src/swig/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,12 @@ target_link_libraries(${PROJECT_NAME}
7878
)
7979

8080
option(BUILD_FOR_DEBIAN_PACKAGE "Build for debian package" OFF)
81-
set(GET_PATH_SCHEME "posix_prefix")
8281
if (BUILD_FOR_DEBIAN_PACKAGE)
83-
set(GET_PATH_SCHEME "deb_system")
82+
set(GET_PATH_SCHEME "\'deb_system\',")
8483
endif()
8584

8685
# Find the installation path
87-
execute_process(COMMAND ${Python3_EXECUTABLE} -c "from sysconfig import get_path; print(get_path('purelib', '${GET_PATH_SCHEME}', {'base': '${CMAKE_INSTALL_PREFIX}'}))"
86+
execute_process(COMMAND ${Python3_EXECUTABLE} -c "from sysconfig import get_path; print(get_path('purelib', ${GET_PATH_SCHEME} vars={'base': '${CMAKE_INSTALL_PREFIX}'}))"
8887
OUTPUT_VARIABLE _ABS_PYTHON_MODULE_PATH
8988
OUTPUT_STRIP_TRAILING_WHITESPACE
9089
)

0 commit comments

Comments
 (0)