Use of CMAKE_PROJECT_TOP_LEVEL_INCLUDES in options.cmake

Hi,

I want to use CMAKE_PROJECT_TOP_LEVEL_INCLUDES through options.cmake instead of passing this as an argument to command line e.g

instead of using it like cmake -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=

I want to define it in options.cmake and then call cmake

cmake -B build

I tried doing so but it is not working. Can you please help?

Best Regards
Laxmi Jain

Hi,

can you please post a minimal example of how you’re doing it that will demonstrate the problem?