标签: cmake
运行cmake -G ...后,cmake将为用户指定的本机构建工具生成构建文件。是否可以从bash检测到主构建文件(例如Makefile,build.ninja)的路径?
cmake -G ...
Makefile
build.ninja
cmake -G MyGenerator . print_main_build_file . # The main build file printed