G'day.
Is there a tool which provides autoconf-like configure interface to CMake? eg instead of
cmake -DCMAKE_C_COMPILER=mpicc
invoke same command via
./configure CC=mpicc
This github project provides a configure
script that understands and translates between a cmake project and a standard autotools
configure
including support for --prefix
and --enable
It takes a little bit to grok, but I believe its the closest solution to what you're expecting.
Just wrap the call to cmake in the configure script (from OpenSceneGraph):
Be aware that this will perform an "in-source" build. You can pass build variables via the usual -DVARNAME=VALUE, e.g.: