[CMake] Alternative to CMAKE_PREFIX_PATH

Nikita Barawade nikita.barawade at einfochips.com
Mon Jan 18 09:08:02 EST 2016



Hi,

My project needs Qt5   .

Adding
find_package (Qt5Widgets)
to CMakeLists.txt  could not find Qt .

So I added,
set (CMAKE_PREFIX_PATH
"< Qt installation  path>")

It is working fine now. But is there any alternative to find qt5 package  without  hardcoding  CMAKE_PREFIX_PATH ?

Regards,
Nikita
************************************************************************************************************************************************************* eInfochips Business Disclaimer: This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. *************************************************************************************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160118/2e6323c1/attachment.html>


More information about the CMake mailing list