I'm trying to compile a program using cmake and am passing in -DCOMMIT_NUM:STRING="some_number" as a command line argument with the cmake. I see this variable in the CMakeCache.txt file, but I'm not sure of how to access it in my program. I need to print COMMIT_NUM. I try to print this variable. The error I am getting is that COMMIT_NUM is not declared in the scope.
Looked everywhere, so could I please get some help? Thank you