[CMake] Confusion about CMAKE_INSTALL_PREFIX

vivek goel goelvivek2011 at gmail.com
Sat May 26 01:44:49 EDT 2012


I am building another program inside my cmake which usage autotools for
generating it's make file.

I want to run it's configure like ./configure
--prefix=${CMAKE_INSTALL_PREFIX}.
But when I am  changing the DESTDIR for my project. CMAKE_INSTALL_PREFIX is
not getting changed.
So everytime configure is running as
./configure --prefix=/usr/local
Is it a bug ?
or Should I use DESTDIR variable instead of using CMAKE_INSTALL_PREFIX
or Should I set -DCMAKE_INSTALL_PREFIX whenever I am changing DESTDIR.

What is the recommended way ?

regards
Vivek Goel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120526/eba27d95/attachment.htm>


More information about the CMake mailing list