Re: [CMake] cmake-qt: controlling includes order

2015-07-08 Thread Stephen Kelly
Bill Somerville wrote: > Also this is all due to a > Mac issue where having MacPorts Qt4 installed causes it to be pulled in > when some other MacPorts library is used, in this case FFTW3. Most of > our developers work on Windows and Linux and are not going to know that > this abomination is requi

Re: [CMake] cmake-qt: controlling includes order

2015-06-30 Thread Bill Somerville
On 30/06/2015 22:28, Stephen Kelly wrote: Hi Steve, thanks for looking at this. Bill Somerville wrote: Any ideas how I can control the ordering or reorder the TARGET_INCLUDE_DIRECTORIES property? add_executable(hello main.cpp) target_link_libraries(hello Qt5::Widgets) target_include_d

Re: [CMake] cmake-qt: controlling includes order

2015-06-30 Thread Stephen Kelly
Bill Somerville wrote: > Any ideas how I can control the ordering or reorder the > TARGET_INCLUDE_DIRECTORIES property? add_executable(hello main.cpp) target_link_libraries(hello Qt5::Widgets) target_include_directories( $ ${otherIncludes} ) Thanks, Steve. -- Powered by www.kitwar

[CMake] cmake-qt: controlling includes order

2015-06-29 Thread Bill Somerville
Hi All, I have an issue with cmake-qt where i need to ensure an include path set by the include_directories() command is after include paths that are added by the target_link_libraries() command or by the qt5_use_modules() command. In both cases the AFTER option on the include_directories() c