Skip to content

Commit

Permalink
#354: Update packageName_ROOT variable to hold multiple prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Jun 24, 2024
1 parent 44a10b9 commit d251958
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/load_package.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ macro(find_package_local pkg_name pkg_other_name)
#message(STATUS "skipping find_package for ${pkg_name}")
else()
if(DEFINED ${pkg_name}_DIR AND NOT DEFINED ${pkg_name}_ROOT)
set(${pkg_name}_ROOT ${${pkg_name}_DIR})
set(${pkg_name}_ROOT "${${pkg_name}_DIR}/cmake/${pkg_name}/"
"${${pkg_name}_DIR}/cmake/${pkg_other_name}/"
"${${pkg_name}_DIR}/CMake/${pkg_name}/"
"${${pkg_name}_DIR}/CMake/${pkg_other_name}/"
)
endif()

message(
Expand Down

0 comments on commit d251958

Please sign in to comment.