Add a CMake defined variable that contains the value of the "-C" option.
I am using the cmake -C=<path>
option to set a bunch of cache variables. In my CMake code I would like to add that file to a custom target to make it visible in a Visual Studio solution. As far as I know there is no CMake defined variable that holds the value of the -C
option. Having such a variable would relieve me from jumping through some extra hoops to get the name of the file in my cmake code.
Cheers Knitschi
Edited by Knitschi