Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Current develop

### Added (new features/APIs/variables/...)
- [[PR634]](https://github.com/lanl/singularity-eos/pull/643) Fixed `find_package(singularity-eos)` failures when built without closure variant. The CMake config now automatically detects which components were built and only requires those that exist, enabling header-only usage without the compiled library.
- [[PR632]](https://github.com/lanl/singularity-eos/pull/632) Added generic constructors to SpinerEOSDependsRhoSie and SpinerEOSDependsRhoT that build tables from any EOS object.
- [[PR623]](https://github.com/lanl/singularity-eos/pull/623) Expanded the sesame2spiner syntax to support multiple material definitions in one input file.
- [[PR618]](https://github.com/lanl/singularity-eos/pull/618) Add PTDerivativesFromPreferred for computing derivatives of a mixture in a cell
Expand Down
10 changes: 9 additions & 1 deletion config/singularity-eosConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ endif()
# ------------------------------------------------------------------------------#
# check for selected components
# ------------------------------------------------------------------------------#

# Determine which components were actually built and installed
set(${CMAKE_FIND_PACKAGE_NAME}_available_components Interface)
if(@SINGULARITY_BUILD_CLOSURE@)
list(APPEND ${CMAKE_FIND_PACKAGE_NAME}_available_components Library)
endif()

if(${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS)
set(${CMAKE_FIND_PACKAGE_NAME}_known_components Interface Library)
foreach(comp IN LISTS ${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS)
Expand All @@ -42,7 +49,8 @@ if(${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS)
endforeach()
set(${CMAKE_FIND_PACKAGE_NAME}_comps ${${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS})
else()
set(${CMAKE_FIND_PACKAGE_NAME}_comps Interface Library)
# Default to all available components (only what was actually built)
set(${CMAKE_FIND_PACKAGE_NAME}_comps ${${CMAKE_FIND_PACKAGE_NAME}_available_components})
endif()

foreach(comp IN LISTS ${CMAKE_FIND_PACKAGE_NAME}_comps)
Expand Down
Loading