News for hackers. Stuff that matters.
Re:Strengths, weaknesses, opportunities, and threats facing ... by tpush on Monday May 02, 2022 @05:15AM (#31232801)
Something like 'cmake --list-options CMakeLists.txt' seems the most obvious.
Re:Strengths, weaknesses, opportunities, and threats facing ... by jcelerier on Monday May 02, 2022 @08:50AM (#31234466)
I 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)