File tree Expand file tree Collapse file tree 1 file changed +3
-20
lines changed Expand file tree Collapse file tree 1 file changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -484,26 +484,8 @@ if(ENABLE_FLOAT_FFTW)
484484endif ()
485485
486486if (ENABLE_MLALGO)
487- target_link_libraries (${ABACUS_BIN_NAME} deepks)
488-
489- find_path (libnpy_SOURCE_DIR npy.hpp HINTS ${libnpy_INCLUDE_DIR} )
490- if (NOT libnpy_SOURCE_DIR)
491- include (FetchContent)
492- FetchContent_Declare(
493- libnpy
494- GIT_REPOSITORY https://github.com/llohse/libnpy.git
495- GIT_SHALLOW TRUE
496- GIT_PROGRESS TRUE )
497- FetchContent_MakeAvailable(libnpy)
498- else ()
499- include_directories (${libnpy_INCLUDE_DIR} )
500- endif ()
501- include_directories (${libnpy_SOURCE_DIR} /include )
502- # add_compile_definitions(__MLALGO)
503- endif ()
504-
505- if (ENABLE_MLALGO)
506- target_link_libraries (${ABACUS_BIN_NAME} hamilt_mlkedf)
487+ target_link_libraries (${ABACUS_BIN_NAME} deepks) # deepks
488+ target_link_libraries (${ABACUS_BIN_NAME} hamilt_mlkedf) # mlkedf
507489
508490 find_path (libnpy_SOURCE_DIR npy.hpp HINTS ${libnpy_INCLUDE_DIR} )
509491 if (NOT libnpy_SOURCE_DIR)
@@ -518,6 +500,7 @@ if(ENABLE_MLALGO)
518500 include_directories (${libnpy_INCLUDE_DIR} )
519501 endif ()
520502 include_directories (${libnpy_SOURCE_DIR} /include )
503+
521504 add_compile_definitions (__MLALGO)
522505endif ()
523506
You can’t perform that action at this time.
0 commit comments