Skip to content

Commit

Permalink
fix python
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Nov 13, 2024
1 parent 3c5199d commit c455b00
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,10 @@ if(ENABLE_PYTORCH AND NOT DEEPMD_C_ROOT)
list(APPEND BACKEND_LIBRARY_PATH ${PyTorch_LIBRARY_PATH})
list(APPEND BACKEND_INCLUDE_DIRS ${TORCH_INCLUDE_DIRS})
endif()
if(ENABLE_JAX AND NOT DEEPMD_C_ROOT)
if(ENABLE_JAX
AND BUILD_CPP_IF
AND NOT DEEPMD_C_ROOT)
# no way to find it using Python
find_package(TensorFlowC REQUIRED MODULE)
if(DEFINED TENSORFLOWC_LIBRARY)
list(APPEND BACKEND_LIBRARY_PATH ${TENSORFLOWC_LIBRARY})
Expand Down

0 comments on commit c455b00

Please sign in to comment.