[CMake] A strange problem when I "rm -rf *" under project/build.
Kermit Mei
kermit.mei at gmail.com
Mon Jan 19 04:05:57 EST 2009
Philip Lowman wrote:
> On Mon, Jan 19, 2009 at 1:59 AM, Kermit Mei <kermit.mei at gmail.com
> <mailto: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
Hmm, I'm sorry to trouble you here. The real problem is that I install
it in /usr/local with careless. So, the program linked to the libs
under /usr/local/lib ;p
More information about the CMake
mailing list