Hello, community!

How can I install something into an absolute directory?
For example, I want to install the directory under /usr/share.
When I use the following command:
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/dict/mydir DESTINATION share)

'mydir' may be installed into /usr/local/share, if I run
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..

How to avoid it, and guarantee it can be install under /usr/share whatevery I
pointed with cmake PREFIX ?

Thanks.

Kermit Mei
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to