Skip to content

Commit 7a09823

Browse files
committed
[cmake] Set CPP2PY_PYTHON_EXECUTABLE cache for parent projects
1 parent 2024973 commit 7a09823

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ set(LIBCLANG_LOCATION "${LIBCLANG_LOCATION}" CACHE STRING "Location of the libcl
5454
# --- Python ---
5555

5656
find_package(Python)
57+
set(CPP2PY_PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE} CACHE FILEPATH "Python Executable")
5758
add_library(cpp2py::python_and_numpy ALIAS python_and_numpy)
5859
install(TARGETS python_and_numpy EXPORT Cpp2PyTargets)
5960

0 commit comments

Comments
 (0)