Re: [CMake] Alternative to CMAKE_PREFIX_PATH

2016-01-20 Thread Nikita Barawade
2016 08:16 PM To: Nikita Barawade Cc: cmake@cmake.org Subject: Re: [CMake] Alternative to CMAKE_PREFIX_PATH A better alternative would be to use the command line switch -DCMAKE_PREFIX_PATH= or similarly via CMake-GUI. Or you could also use the env var. See https://cmake.org/cmake/help/v3

Re: [CMake] Alternative to CMAKE_PREFIX_PATH

2016-01-18 Thread Thomas Richard
/cmake/ but for instance on some linux installation they may be somewhere else). Thomas From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Nikita Barawade Sent: 18 January 2016 14:08 To: cmake@cmake.org Subject: [CMake] Alternative to CMAKE_PREFIX_PATH Hi, My project needs Qt5

Re: [CMake] Alternative to CMAKE_PREFIX_PATH

2016-01-18 Thread Guillaume Dumont
A better alternative would be to use the command line switch -DCMAKE_PREFIX_PATH= or similarly via CMake-GUI. Or you could also use the env var. See https://cmake.org/cmake/help/v3.3/command/find_package.html?highlight=cmake_prefix_path for search order. On Mon, Jan 18, 2016 at 9:08 AM, Nikita Bar

[CMake] Alternative to CMAKE_PREFIX_PATH

2016-01-18 Thread Nikita Barawade
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, Nik