Skip to content

Commit

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

Signed-off-by: Jinzhe Zeng <[email protected]>
(cherry picked from commit 412c812)
  • Loading branch information
njzjz authored and wanghan-iapcm committed Feb 4, 2024
1 parent 7886e83 commit e73e5ad
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 e73e5ad

Please sign in to comment.