File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -655,7 +655,6 @@ if(DEFINED NEP_DIR)
655655
656656 if (NEP_FOUND)
657657 add_compile_definitions (__NEP)
658- add_compile_options (-Wl,--no -as-needed)
659658 target_link_libraries (${ABACUS_BIN_NAME} NEP::nep_cpu)
660659 endif ()
661660endif ()
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ if(NEP_FOUND)
3737 if (NOT TARGET NEP::nep_cpu)
3838 add_library (NEP::nep_cpu UNKNOWN IMPORTED )
3939 set_target_properties (NEP::nep_cpu PROPERTIES
40+ IMPORTED_LINK_INTERFACE_LANGUAGES "C"
4041 IMPORTED_LOCATION "${NEP_LIBRARY} "
4142 INTERFACE_INCLUDE_DIRECTORIES "${NEP_INCLUDE_DIR} "
4243 )
Original file line number Diff line number Diff line change @@ -131,10 +131,12 @@ prepend_path LD_LIBRARY_PATH "$pkg_install_dir/lib"
131131prepend_path LD_RUN_PATH "$pkg_install_dir /lib"
132132prepend_path LIBRARY_PATH "$pkg_install_dir /lib"
133133prepend_path CPATH "$pkg_install_dir /include"
134+ prepend_path CMAKE_PREFIX_PATH "$pkg_install_dir "
134135export LD_LIBRARY_PATH="$pkg_install_dir /lib":\$ {LD_LIBRARY_PATH}
135136export LD_RUN_PATH="$pkg_install_dir /lib":\$ {LD_RUN_PATH}
136137export LIBRARY_PATH="$pkg_install_dir /lib":\$ {LIBRARY_PATH}
137138export CPATH="$pkg_install_dir /include":\$ {CPATH}
139+ export CMAKE_PREFIX_PATH="$pkg_install_dir ":\$ {CMAKE_PREFIX_PATH}
138140EOF
139141 cat " ${BUILDDIR} /setup_nepcpu" >> $SETUPFILE
140142 fi
You can’t perform that action at this time.
0 commit comments