otland / forgottenserver

A free and open-source MMORPG server emulator written in C++
https://otland.net
GNU General Public License v2.0
1.57k stars 1.05k forks source link

Fix boost unit-test dependency detection #4663

Closed ranisalt closed 4 months ago

ranisalt commented 4 months ago

Pull Request Prelude

Changes Proposed

Running find_package twice with the same package and different components doesn't really work as we expected, at least for Boost. The second time it is called, to search for unit-test-framework, it reuses the same return value (which didn't request that component) and fails to find.

Solved by calculating the needed components before running find_package