Skip to content

Commit

Permalink
findboost: fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Oct 30, 2023
1 parent f0843d8 commit a0ee57d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions boost/FindBoost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,8 @@ if (NOT Boost_NO_BOOST_CMAKE)
find_package_handle_standard_args(Boost HANDLE_COMPONENTS CONFIG_MODE)
_boost_set_legacy_variables_from_config()

# Restore project's policies
cmake_policy(POP)
return()
endif()
endif()
Expand Down Expand Up @@ -2588,6 +2590,3 @@ list(REMOVE_DUPLICATES _Boost_COMPONENTS_SEARCHED)
list(SORT _Boost_COMPONENTS_SEARCHED)
set(_Boost_COMPONENTS_SEARCHED "${_Boost_COMPONENTS_SEARCHED}"
CACHE INTERNAL "Components requested for this build tree.")

# Restore project's policies
cmake_policy(POP)

0 comments on commit a0ee57d

Please sign in to comment.