vds5@vds5:~/msynctool-0.35/build% /opt/csw/bin/cmake
-DCMAKE_INSTALL_PREFIX=/usr/local ../
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vds5/msynctool-0.35/build
Notice how its installing to /bin/msynctool instead of /usr/local/bin/msynctool:
vds5@vds5:~/msynctool-0.35/build% make install
Linking C executable msynctool
[100%] Built target msynctool
Linking C executable CMakeFiles/CMakeRelink.dir/msynctool
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing /bin/msynctool
CMake Error: Error in cmake code at
/home/vds5/msynctool-0.35/build/tools/cmake_install.cmake:30:
FILE INSTALL cannot copy file
"/home/vds5/msynctool-0.35/build/tools/CMakeFiles/CMakeRelink.dir/msynctool"
to "/bin/msynctool".
Current CMake stack:
[2] /home/vds5/msynctool-0.35/build/tools/cmake_install.cmake
[1] /home/vds5/msynctool-0.35/build/cmake_install.cmake
*** Error code 255
The following command caused the error:
/opt/csw/bin/cmake -P cmake_install.cmake
make: Fatal error: Command failed for target `install'
vds5@vds5:~/msynctool-0.35/build%
|