No you're not meant to specify paths yourself, you should just use find_library. Check how modules such as FindTIFF.cmake are implemented.
Le mar. 22 août 2017 à 19:05, Brian Davis <bitmi...@gmail.com> a écrit : > > and provide future > > target_link_directories( > targ > INTERFACE > debug ${TOP}/build/x64/Debug/Libraries/ > optimized ${TOP}/build/x64/Release/Libraries/ > ) > > with debug / optimized / general capability > > then targets could support multiple debug / release dirs even if CMake > (CMAKE_INSTALL_PREFIX) can't (ie no CMAKE_INSTALL_PREFIX_<CONFIG> > capability) > > If anyone is looking at those dirs and wondering *why* (as I often do)... > I need CMake in mixed mode with CMake generated projs and imported existing > vcxproj files. > > if provided I could then targ link dirs, include dirs, and interface the > libs from a position of relative sanity or at least the white jacket with > wrap around arms tied in the back would be a little looser to the fit. > > > > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/cmake
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake