Skip to content

Commit

Permalink
Don't prefer frameworks when doing find_package
Browse files Browse the repository at this point in the history
  • Loading branch information
starseeker committed Sep 25, 2024
1 parent 4421096 commit 425e888
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions misc/CMake/BRLCAD_Find_Package.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ macro(BRLCAD_Find_Package pkg_name)
# https://discourse.cmake.org/t/cmake-properties-for-options/250/2
get_property(cv_ctrl DIRECTORY PROPERTY CACHE_VARIABLES)

# Generally speaking we're not looking to use frameworks in BRL-CAD - try
# them only at the end, if we don't have standard libraries/headers.
set(CMAKE_FIND_FRAMEWORK LAST)

# Execute the actual find_package call
if (F_REQUIRED)
find_package(${pkg_name} REQUIRED)
Expand Down

0 comments on commit 425e888

Please sign in to comment.