diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index 1ec3000c8..73e38e245 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -176,7 +176,7 @@ macro(createPackage) # Grab all dynamically linked dependencies. INSTALL(CODE "set(CMAKE_INSTALL_BINDIR \"${CMAKE_INSTALL_BINDIR}\")") - INSTALL(CODE "get_filename_component(PY_PARENT ${Python_LIBRARIES} DIRECTORY)") + INSTALL(CODE "get_filename_component(PY_PARENT \"${Python_LIBRARIES}\" DIRECTORY)") INSTALL(CODE "LIST(APPEND DEP_FOLDERS \${PY_PARENT})") install(CODE [[ file(GET_RUNTIME_DEPENDENCIES