Append variable to <BUILD_DIR> in ExternalProject_Add command

Thanks for getting back to me Ben,

I see, and I take it that currently doesn’t exist? It seems like it would be really useful in certain contexts and follow a similar pattern to other CMake variables.

I might also just be taking the wrong approach and there’s a better way to build multiple configurations using ExternalProject_Add.

The reason I was trying to do it this way instead of creating a separate build folder would be the library would need to be downloaded twice which seemed redundant/wasteful and if I don’t make a separate configuration folder, then if you build Debug, then Release and then Debug again, the Debug build will start over again which is sometimes a pain as it’ll have been stomped by Release.

I can just fallback to a custom override like ${CURRENT_CMAKE_BINARY_DIR}/SDL2/Debug, but reusing <BINARY_DIR> felt cleaner.

Thanks!

Tom