[CMake] How to specify default build dir in CMakeLists.txt?
Kedzierski,
Artur CIV NAVSURFWARCENDIV CORONA
artur.kedzierski at navy.mil
Tue Sep 19 01:53:40 EDT 2006
It would be something like:
${CMAKE_SOURCE_DIR)/build
In other words it would be a subdirectory of the top-level
source dir.
Yes, it would be annoying if the default was set to 'c:\'
or '/tmp/'. However, it is safe to assume that if the user can
compile source in '/some/dir/ (in-source)', he should also be able
to compile in '/some/dir/build' (subdir of source but out-of-source).
Again, this is just a default so the user wouldn't be forced to
use that directory.
--
Artur Kedzierski
-----Original Message-----
From: cmake-bounces+artur.kedzierski=navy.mil at cmake.org
[mailto:cmake-bounces+artur.kedzierski=navy.mil at cmake.org] On Behalf Of
Brandon J. Van Every
Sent: Monday, September 18, 2006 22:24
To: cmake
Subject: Re: [CMake] How to specify default build dir in CMakeLists.txt?
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
> The goal is to have an out-of-source build by default.
>
That means you'd have to pick an out-of-source directory for the user.
What do you imagine would be a non-annoying choice? Do you have enough
knowledge of the user's system to know where he wants to build stuff? I
think not.
I think what you really want are platform-specific subdirectories for
building in your own source tree.
Cheers,
Brandon Van Every
_______________________________________________
CMake mailing list
CMake at cmake.org
http://www.cmake.org/mailman/listinfo/cmake
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4670 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060918/5b976b55/smime.bin
More information about the CMake
mailing list