This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Description
Recently, I've discovered that CMake's find_package is more limiting than I first thought.
It will only ever find binary prebuilts. Even if you've done an add_subdirectory for the sought package, and then a find_package (potentially in a thirdparty CMakeLists.txt), it will never detect that you've asked the package to build from source. Never. You have to modify each use of find_package to check if it wasn't found, etc.
BuildAMation is currently at the other end of the spectrum - every Module except those marked as [Prebuilt] are built from source. I definitely want the option to choose whether I can use a prebuilt if it's available.
And herein lies the problem. How can that happen?
I did have thoughts about an 'install' process that would then write a new BAM script for a binary built package. But then this is very disjoint from where the package is maintained.
I'd much rather have it so that a package's BAM scripts are mutable between prebuilts and source; either with the existence of binaries, or a flag to force source builds.
This seems difficult thought.