Open
Description
When CMake can't find python, the boost::python package is correctly skipped.
However, the parameter library still tries to link with it.
This causes several errors after the configuration phase such as:
CMake Error at bcm/share/bcm/cmake/BCMFuture.cmake:68 (_add_library):
Target "log-compile-current_function_support" links to target
"boost::python" but the target was not found. Perhaps a find_package()
call is missing for an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
bcm/share/bcm/cmake/BCMTest.cmake:104 (add_library)
libs/log/test/CMakeLists.txt:62 (bcm_test)
An easy way to reproduce this is, for example, to do a 64 build on a machine with only the 32-bit python libraries present.
Commenting out the line I referenced solved the problem in this case, and I was able to build the project - so I think it should be conditional.
And also, other, optionally built libraries referenced in this way could cause similar issues.
Metadata
Metadata
Assignees
Labels
No labels