Hi,
The goal is to have an out-of-source build by default.
The target is a programmer who compiles my package just
to get the libraries needed for another project. He would
have one less option to worry about, especially, if
he wasn't familiar with CMake. That programmer
would be accessing the source code from Subversion repository. The
out-of-source compilation would prevent problems related to
adding/deleting/adding back/ a directory. If the programmer
wanted to work on my library, he would changed the default to his
preferred structure (./build/debug/, ./build/optimized, etc.).
He could also shoot himself in the foot and change it to in-source
compilation.-- Artur Kedzierski -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brandon J. Van Every Sent: Monday, September 18, 2006 20:10 To: cmake Subject: Re: [CMake] How to specify default build dir in CMakeLists.txt? Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > Hi, > > I am pretty new to CMake. Is there a way to specify a > default build dir in CMakeLists.txt? What are you really trying to prevent from happening? Are you just trying to get all your *.o files to appear in a particular place, separate from your source files, or some such? You can just set up your source tree to build whatever way you want, although some approaches are more complicated than others. The 'default' for building is just your source tree. The user has the option to change this to an out-of-directory build, which mirrors your own source tree. The user will typically take that option if they have "learned the CMake culture." Cheers, Brandon Van Every _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
