ADD_DEFINITIONS(${PCL_DEFINITIONS} ${QT_DEFINITIONS})

LINK_DIRECTORIES(${PCL_DEFINITIONS})

This combination is most likely wrong. Adding the same things as compiler definitions as well as linker path entries would only be correct when the variable is empty.

Also: don't use link_directories(). It's basically always causing trouble. Very likely exactly the error you see. If the PCL module does not return absolute paths to the libraries you need to link it is broken and needs to be fixed.

Eike
--

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