2

I've a custom command with some output file.

However there is some issue I have under VisualStudio: the location of generated file is the same for Release and Debug which is not what I want.

I'd like to be able to generate this file in subdir "Relase" or "Debug" as CMake does for all binary files when run with VisualStudio generator.

How can I achieve that?

1 Answer 1

4

Use the CMake variable CMAKE_CFG_INTDIR in your custom command, as demonstrated in the documentation.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.