cmake 3.12.4: Unknown CMake command "FetchContent_MakeAvailable"; selects Python 2.7 by default?
In trying to bisect cmake versions for #180 (closed), ran into this error with cmake 3.12.4
:
$ git log -n 1 --oneline --no-decorate
89fecfb Merge branch 'use_alias_strings' into 'master'
$ cmake -DPython3_FIND_VIRTUALENV=FIRST ..
...
-- Found Python: /usr/bin/python2.7 (found version "2.7.17") found components: Interpreter Development
CMake Error at AutoPyBind11.cmake:38 (FetchContent_MakeAvailable):
Unknown CMake command "FetchContent_MakeAvailable".