-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
sometime user hope cmake tools can use different source directory according the cmake-variant choise. |
Beta Was this translation helpful? Give feedback.
-
The design reflects our expectation that the source directory is relatively stable. We haven't seen a project that changes the source directory based on the build type before. Do you have separate projects for We can consider a feature request to support this if you would like to open an issue for it. There is some messiness with the build directory when source directory is unstable since we don't guarantee that the build directory is variable in the same way as the source directory, but perhaps we could enforce a condition that if variant substitution happens in the source directory, it must also happen for the build directory to avoid problems. |
Beta Was this translation helpful? Give feedback.
The design reflects our expectation that the source directory is relatively stable. We haven't seen a project that changes the source directory based on the build type before. Do you have separate projects for
src/Debug
andsrc/Release
? Do they eventually reference the same build scripts for the rest of the project? We expected that most people would conditionally include a cmake rule file or use a toolchain to set project state based on build type instead.We can consider a feature request to support this if you would like to open an issue for it. There is some messiness with the build directory when source directory is unstable since we don't guarantee that the build directory is variab…