Skip to content

Commit

Permalink
Merge pull request #202 from MeasureTransport/dannys4/julia-install-path
Browse files Browse the repository at this point in the history
Add option for Julia install path
  • Loading branch information
mparno authored Aug 17, 2022
2 parents 08a4409 + 1d1902a commit 3002a8f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/julia/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ add_library(mpartjl SHARED ${JULIA_BINDING_SOURCES})
target_link_libraries(mpartjl PRIVATE mpart JlCxx::cxxwrap_julia JlCxx::cxxwrap_julia_stl Kokkos::kokkos Eigen3::Eigen)

# Add an installation target for the julia bindings
install(TARGETS mpartjl DESTINATION julia/mpart)
install(TARGETS mpartjl DESTINATION "${JULIA_INSTALL_PREFIX}")
7 changes: 7 additions & 0 deletions cmake/SetInstallPaths.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@ else()
endif()

message(STATUS "Python packages will be installed to ${PYTHON_INSTALL_PREFIX}.")

if(JULIA_INSTALL_PREFIX)
message(STATUS "JULIA_INSTALL_PREFIX was set by user to be ${JULIA_INSTALL_PREFIX}.")
else()
message(STATUS "JULIA_INSTALL_PREFIX was not set by user, defaulting to CMAKE_INSTALL_PREFIX/julia.")
set(JULIA_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/julia)
endif()

0 comments on commit 3002a8f

Please sign in to comment.