Sign in to follow this  
3DModelerMan

Change directory where CMake will output solution files?

Recommended Posts

3DModelerMan    1173

I've been searching everywhere and can't find an answer to this question. How can I change where CMake will output the solution files? It just puts them right in the directory that I run CMake from. I want them to go in a projects folder instead.

Share this post


Link to post
Share on other sites
Hiwas    5807

This is quite simple, just a bit odd.  CMake doesn't have an "output directory' flag, it just outputs to where ever it is run from.  So, if you wish to output to "base/build" directory, you put your CMake list file in the "base" directory, mkdir the 'build' directory and CD into it.  Then just type "cmake ../" and it will read the list file from the base directory and put all it's output in the current directory which is the 'build' directory.  Hope that makes sense, bit sauced right now..  If you need more clarification let me know. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this