Skip to content

Commit

Permalink
gmx: fix include directive (deepmodeling#3221)
Browse files Browse the repository at this point in the history
Fix deepmodeling#3214.

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
  • Loading branch information
njzjz authored Feb 3, 2024
1 parent 677d936 commit 412c812
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/gmx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ else()
target_link_libraries(${libgmxname} PUBLIC ${LIB_DEEPMD_CC})
target_compile_definitions(${libgmxname} PUBLIC "DP_USE_CXX_API")
endif()
target_compile_definitions(${libgmxname} PRIVATE "DP_GMX_PLUGIN_INTERNAL")
target_include_directories(${libgmxname}
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_include_directories(${libgmxname}
Expand Down
4 changes: 4 additions & 0 deletions source/gmx/include/gmx_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
#include "DeepPot.h"
namespace deepmd_compat = deepmd;
#else
#ifdef DP_GMX_PLUGIN_INTERNAL
#include "deepmd.hpp"
#else
#include "deepmd/deepmd.hpp"
#endif
namespace deepmd_compat = deepmd::hpp;
#endif

Expand Down

0 comments on commit 412c812

Please sign in to comment.