[CMake] Robust check/prevention of in source builds

Zaak Beekman zbeekman at gmail.com
Fri Aug 2 17:12:02 EDT 2013


Hi,
I am wondering what the best way to detect and prevent in source builds is.
Some potential pitfalls are relative paths vs absolute paths, and symbolic
links (build_dir -> source_dir). If anyone has any suggestions, I'd love to
hear them. Obviously string comparisons handle neither of these nefarious
cases.
-Zaak

Izaak Beekman
===================================
(301)244-9367
Princeton University Doctoral Candidate
Mechanical and Aerospace Engineering
ibeekman at princeton.edu

UMD-CP Visiting Graduate Student
Aerospace Engineering
ibeekman at umiacs.umd.edu
ibeekman at umd.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130802/9b5bc5e3/attachment.htm>


More information about the CMake mailing list