Add command-line argument to prevent the generation of CMakeLists.txt#222
Add command-line argument to prevent the generation of CMakeLists.txt#222gangatp merged 2 commits intoAutodesk:developfrom
Conversation
The command-line argument, '-suppresscmake', doesn't generate CMakeLists.txt file for C++ implementation. It only takes effect if '-suppressstub' argument is not set.
Thank you for creating the PR, can you explain why and when this flag is necessary and needs to be used? |
|
Imagine that user wants to specify the folders for bindings, interfaces and stubs. Most likely, these folders are different from the default foaldernamed '<ProjectName>_component'. In this scanario, the CMakeLists.txt should be generated under the specified stubs folder and avoid generating the default folder, i.e., '<ProjectName>_component'. Note: this is not included in this pr. However, in our case, we create and maintain the cmake configurations ourselves rather than relying on the one genreated by ACT. Therefore, we want to suppress its generation. With this pr, the default folder which is empty are still generated because the logic here. It is fine, since empty folder is always ignored by git. |
The command-line argument, '-suppresscmake', doesn't generate CMakeLists.txt file for C++ implementation. It only takes effect if '-suppressstub' argument is not set.