Skip to content

Commit

Permalink
Added missing find_package calls in ThermoFunConfig.cmake.in
Browse files Browse the repository at this point in the history
In this cmake config file, we need to add `find_package` calls for the libraries that ThermoFun depends:

find_package(ChemicalFun REQUIRED)
find_package(spdlog CONFIG REQUIRED)

This is needed so that codes depending on ThermoFun will be able to automatically find its dependencies too.
  • Loading branch information
allanleal committed Jun 8, 2023
1 parent 923cf63 commit fa2475f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/modules/ThermoFunConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ if(NOT TARGET ThermoFun::ThermoFun)
include("@PACKAGE_THERMOFUN_INSTALL_CONFIGDIR@/ThermoFunTargets.cmake")
endif()

# Find all dependencies below.
find_package(ChemicalFun REQUIRED)
find_package(spdlog CONFIG REQUIRED)

# Recommended check at the end of a cmake config file.
check_required_components(ThermoFun)

0 comments on commit fa2475f

Please sign in to comment.