Skip to content

Question on "cmake.sourceDirectory" substitution #2637

Closed Answered by bobbrow
PennYU asked this question in Q&A
Discussion options

You must be logged in to vote

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 and src/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…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@PennYU
Comment options

@bobbrow
Comment options

@PennYU
Comment options

Answer selected by bobbrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants