CMake '-C' command option doesn't consistently work
CMake -C
option should be usable in all the following patterns:
cmake -C settings sourcedir
cmake -Csettings sourcedir
cmake sourcedir -C settings
cmake sourcedir -Csettings
With CMake 3.12.3 and CMake 3.13.0-RC2 the following work:
cmake -C settings sourcedir
cmake -Csettings sourcedir
cmake sourcedir -Csettings
Under both cmake sourcedir -C settings
treats the settings file as the source directory:
loading initial cache file config.cmake
CMake Error: The source directory "/home/robert/Work/cmake/config_option/config.cmake" is a file, not a directory.