According to the documentation include_directories has the following syntax: include_directories([AFTER|BEFORE] [SYSTEM] dir1 dir2 ...)
Especially AFTER and BEFORE are very usefull, when the search order is important.
I was suprised when I did not find the AFTER and BEFORE in the link_directories command. This feature is important for us, because we use Windows SDK and want to link to its libraries instead of Visual Studio. But in fact CMake puts our link directories after the Visual Studio's. As the result our applications link to wrong libraries.
Is there a workaround? Thanks in advance, Anatoly Shirokov. _______________________________________________ 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