And I have checked in the .vcproj file that it has the proper value. If I change the configurations in the command arguments window, the file is created/modified in the configured location.
The problem appears when the project is loaded: it seems to try to load the file from the default location instead of the file in the SmartCmdArgJsonFile variable. If I just open the project, no command line arguments are present. If I copy the .json file to the .vcproj directory with the same name as the .vcproj, then when loading the project it does load that configuration from there. After that, it stores the configuration in the file indicated by SmartCmdArgJsonFile.
For me the command list is empty when I change the CMakeLists.txt while VS is open. After compiling my project VS asks me to reload the solution and after the reload the command list is empty.
I'm using CMake 3.13 and Visual Studio 2017.
I set up the project property as indicated in the cmake help page:
And I have checked in the .vcproj file that it has the proper value. If I change the configurations in the command arguments window, the file is created/modified in the configured location.
The problem appears when the project is loaded: it seems to try to load the file from the default location instead of the file in the SmartCmdArgJsonFile variable. If I just open the project, no command line arguments are present. If I copy the .json file to the .vcproj directory with the same name as the .vcproj, then when loading the project it does load that configuration from there. After that, it stores the configuration in the file indicated by SmartCmdArgJsonFile.