Skip to content

Commit

Permalink
Added missing find_package calls in ChemicalFunConfig.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 ChemicalFun depends:

find_package(spdlog CONFIG REQUIRED)

This is needed so that codes depending on ChemicalFun will be able to automatically find its dependencies too.
  • Loading branch information
allanleal committed Jun 8, 2023
1 parent 46c628f commit 588bae9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/modules/ChemicalFunConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ if(NOT TARGET ChemicalFun::ChemicalFun)
include("@PACKAGE_CHEMICALFUN_INSTALL_CONFIGDIR@/ChemicalFunTargets.cmake")
endif()

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

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

0 comments on commit 588bae9

Please sign in to comment.