Skip to content

Commit

Permalink
Passing VIRTUAL_ENV as an argument to PYB11Generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavis36 committed Nov 8, 2024
1 parent 27ada9e commit 7b0c7a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 1 addition & 11 deletions cmake/spheral/SpheralAddLibs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,6 @@ function(spheral_add_pybind11_library package_name module_list_name)
get_property(SPHERAL_BLT_DEPENDS GLOBAL PROPERTY SPHERAL_BLT_DEPENDS)
list(APPEND SPHERAL_DEPENDS Spheral_CXX ${${package_name}_DEPENDS})

set(PYTHON_EXE_BAK ${PYTHON_EXE})


get_target_property(PYTHON_EXE python_build_env EXECUTABLE)

message("---------")
message("${PYTHON_EXE}")


set(MODULE_NAME Spheral${package_name})
PYB11Generator_add_module(${package_name}
MODULE ${MODULE_NAME}
Expand All @@ -245,11 +236,10 @@ function(spheral_add_pybind11_library package_name module_list_name)
USE_BLT ON
EXTRA_SOURCE ${${package_name}_SOURCES}
INSTALL OFF
VIRTUAL_ENV python_build_env
)
target_include_directories(${MODULE_NAME} SYSTEM PRIVATE ${SPHERAL_EXTERN_INCLUDES})

set(PYTHON_EXE ${PYTHON_EXE_BAK})

install(TARGETS ${MODULE_NAME}
DESTINATION ${SPHERAL_SITE_PACKAGES_PATH}/Spheral
)
Expand Down
2 changes: 1 addition & 1 deletion extern/PYB11Generator

0 comments on commit 7b0c7a4

Please sign in to comment.