Skip to content

Commit

Permalink
* Potential fix to the 'rpath' issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
khalatepradnya committed Jan 11, 2024
1 parent 8464904 commit 3072809
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ if (CMAKE_BUILD_TYPE STREQUAL "DEBUG")
set(CMAKE_BUILD_TYPE "Debug")
endif()

set(CMAKE_INSTALL_RPATH "$ORIGIN:$ORIGIN/../../lib/" CACHE INTERNAL "")
set(INSTALL_RPATH "$ORIGIN:$ORIGIN/../../lib/" CACHE INTERNAL "")

# # set(ORIGINAL_VALUE ${BUILD_SHARED_LIBS})
# SET(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)

include(AddMLIRPython)

# [RFC]:
Expand Down Expand Up @@ -155,10 +149,8 @@ add_mlir_python_modules(CUDAQuantumPythonModules

file (COPY cudaq DESTINATION ${MLIR_BINARY_DIR}/)

# set(BUILD_SHARED_LIBS ${ORIGINAL_VALUE})
set_target_properties(CUDAQuantumPythonModules CUDAQuantumPythonCAPI CUDAQuantumPythonSources.Extension
PROPERTIES INSTALL_RPATH "$ORIGIN:$ORIGIN/../../lib/")

set_property(TARGET CUDAQuantumPythonModules.extension._quakeDialects.dso
APPEND PROPERTY INSTALL_RPATH "$ORIGIN:$ORIGIN/../../lib/")

## FIXME: Delete '_pycudaq' target?
set(LIBRARY_NAME _pycudaq)
Expand Down

0 comments on commit 3072809

Please sign in to comment.