CMAKE_INSTALL_PREFIX with relative paths behaves differently with and without FILEPATH
CMake versions 2.8.12.2 and 3.6.
I have observed differing behavior from specifying CMAKE_INSTALL_PREFIX as a relative path depending on whether you specify it as CMAKE_INSTALL_PREFIX= or CMAKE_INSTALL_PREFIX:FILEPATH= In the first case, it resolves the path name and puts the correct path in but In the second case it seems to repeat the relative file path.
Say I have the following directory structure
try-cmake/
CMakeLists.txt
src/
try-cmake.hh
try-cmake.cc
build/
If I cd into build and issue
cmake -DCMAKE_INSTALL_PREFIX=.. ..
make install
the install phase tells me its installing executable as expected in the 'try-cmake' dir.
/nh/u/rao/develop/try-cmake/try-cmake
On the other hand, if I issue
cmake -DCMAKE_INSTALL_PREFIX:FILEPATH=.. ..
the install phase tells me its installing the executable in one directory above 'try-cmake', like so
/nh/u/rao/develop/try-cmake/build/../../try-cmake
A tar file with the sample code is attached try-cmake.tar.gz