Re: [CMake] target_link_libraries is using relative path of library

2017-01-08 Thread Andreas Naumann
Hello, on Linux cmake treats system directorys specially, i.e. those libraries are linked without any path. Furthermore there are environment variables, whose content is added to the set of system directories. I do not work on Windows, but your problem looks like a smiliar problem. Does some

[CMake] target_link_libraries is using relative path of library

2017-01-07 Thread Saad Khattak
Hello, This is a very strange behavior I am encountering. I am using CMake 3.7.1 with Visual Studio 2015. I have the following as part of a CMakeLists file: find_library(glfw_LIB_D glfw3_d ${glfw_LIBRARIES}) find_library(glfw_LIBglfw3 ${glfw_LIBRARIES}) When I do "message(STATUS