The test target listed Boost::system and Boost::thread while this package never calls find_package(Boost). The imported targets only existed because another subdirectory happened to be configured first, so CMake passed the literal strings through and the link failed with "cannot find -lBoost::system" whenever that ordering did not hold. The test does not use Boost itself; whatever it needs arrives through the library it links. Dropping the two entries removes the ordering dependency.
5.1 KiB
5.1 KiB