[CMake] A strange problem when I "rm -rf *" under project/build.
Philip Lowman
philip at yhbt.com
Mon Jan 19 02:18:37 EST 2009
On Mon, Jan 19, 2009 at 1:59 AM, Kermit Mei <kermit.mei at gmail.com> wrote:
> Hello, I create my project in the directory ~/project.
>
> And then, I build it in ~/project/build as the following:
>
> cd ~/project
> mkdir build
> cd build
> cmake -DCMAKE_INSTALL_PREFIX=/usr ..
> make
> sudo make install
>
> So far, everything of my program works well.
>
> But, if I delete the files under ~/project/build/*,
> My program will come back to the last version.
>
> Why?
Is it possible you're setting your PATH environment variable to include
~/project/build or something like that so by removing it the system is
falling back on /usr/bin?
Try running "which your_program_name" before and after removing
~/project/build/*.
--
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090119/aa5bcf97/attachment.htm>
More information about the CMake
mailing list