3 ms·
Something like 'cmake --list-options CMakeLists.txt' seems the most obvious.
by tpush 4y ago
Something like 'cmake --list-options CMakeLists.txt' seems the most obvious.
- jcelerier 4y agoI don't think it would be meaningfully different from what you would get by doing less CMakeCache.txt Listing the options cannot be done by just introspecting a CMakeLists: what would it show for: if(FOO) option(ENABLE_BAMBOOZLE_${FOO} "Enable Bamboozle - ${FOO}-specific version" OFF) else() option(ENABLE_BAMBOOZLE "Enable Bamboozle" ON) endif() (and if your meta-build system does not allow to do that, I'm sorry but I'll have to build a meta-meta-build-system on top of it which implements it and no one will like it)