Skip to content

Commit

Permalink
Merge pull request #340 from lanl/jmm/fix-plugins-for-in-tree
Browse files Browse the repository at this point in the history
fix in-tree builds
  • Loading branch information
Yurlungur authored Feb 11, 2024
2 parents 368ae81 + 5583cd9 commit bb8cf53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- [[PR#336]](https://github.com/lanl/singularity-eos/pull/336) Included code and documentation for a full, temperature consistent, Mie-Gruneisen EOS based on a pressure power law expansion in eta = 1-V/V0. PowerMG.

### Fixed (Repair bugs, etc)
- [[PR340]](https://github.com/lanl/singularity-eos/pull/335) Fix in-tree builds with plugin infrastructure
- [[PR335]](https://github.com/lanl/singularity-eos/pull/335) Fix missing hermite.hpp in CMake install required for Helmholtz EOS

### Added (new features/APIs/variables/...)
Expand Down
4 changes: 2 additions & 2 deletions cmake/plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function(register_headers)
get_property(install_headers GLOBAL PROPERTY _install_headers)

foreach(arg IN LISTS variadic_args)
file(RELATIVE_PATH relative_path ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
file(RELATIVE_PATH relative_path ${PROJECT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
if (ARG_PLUGIN)
list(APPEND eos_headers ${relative_path}/${ARG_PLUGIN}/${arg})
list(APPEND install_headers ${ARG_PLUGIN}/${arg})
Expand All @@ -40,7 +40,7 @@ set_property(GLOBAL PROPERTY EOS_SRCS "")
function(register_srcs)
get_property(eos_srcs GLOBAL PROPERTY EOS_SRCS)
foreach(arg IN LISTS ARGN)
file(RELATIVE_PATH relative_path ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
file(RELATIVE_PATH relative_path ${PROJECT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
list(APPEND eos_srcs ${relative_path}/${arg})
endforeach()
set_property(GLOBAL PROPERTY EOS_SRCS "${eos_srcs}")
Expand Down

0 comments on commit bb8cf53

Please sign in to comment.