[CMake] issue with INSTALL and CMAKE_INSTALL_PREFIX

Alexander Neundorf a.neundorf-work at gmx.net
Thu Oct 5 08:53:44 EDT 2006


-------- Original-Nachricht --------
Datum: Thu, 5 Oct 2006 10:35:43 +0200
Von: Xavier Delannoy <xavier.delannoy at netasq.com>
An: cmake at www.cmake.org
Betreff: [CMake] issue with INSTALL and CMAKE_INSTALL_PREFIX

> hi, 
> 
> I use CMake 2.4.1 under FreeBSD6.1.
> 
> in my CMakeLists.txt (for a shared library) I have : 
> 
> SET(CMAKE_INSTALL_PREFIX "$ENV{DESTDIRPREFIX}")
> MESSAGE(STATUS "CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}")
> INSTALL(TARGETS nbase_shared DESTINATION /usr/Firewall/lib)

If you use an absolute path (starting with "/") with the new INSTALL() command, it will be interpreted as absolute path. If you use a relative path ("usr/Firewall/lib") it will be interpreted as relative to CMAKE_INSTALL_PREFIX.
Does this help ?

Bye
Alex

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


More information about the CMake mailing list