Skip to content

Commit 0216d84

Browse files
author
Luca Geretti
committed
Allow modified installation for pyariadne based on HOMEBREW being defined
1 parent 48e12a5 commit 0216d84

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cmake/PythonBindings.cmake

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,12 @@ if(PYTHONLIBS_FOUND)
5353
set_target_properties(pyariadne-algebra PROPERTIES PREFIX "" OUTPUT_NAME "algebra" SUFFIX ".so")
5454
target_link_libraries (pyariadne-algebra PUBLIC ${GCOV_LIBRARIES} ariadne PRIVATE pybind11::module)
5555

56-
find_package(Python)
57-
install(TARGETS pyariadne DESTINATION ${Python_SITEARCH})
56+
if (HOMEBREW)
57+
install(TARGETS pyariadne DESTINATION libexec)
58+
else()
59+
find_package(Python)
60+
install(TARGETS pyariadne DESTINATION ${Python_SITEARCH})
61+
endif()
5862

5963
add_subdirectory(python/tests)
6064

0 commit comments

Comments
 (0)